From fb0543afa82448433a69509d434dfb7fb6746f86 Mon Sep 17 00:00:00 2001 From: Brandon Bergren Date: Fri, 19 Jun 2020 18:43:13 +0000 Subject: [PATCH] [PowerPC] Add virtio to GENERIC Due to kldxref not being able to generate hints for nonnative platforms, any cross built VM images do not have /boot/kernel/linker.hints. This prevents the virtio modules from being loaded, as the fallback code will always fail the version check when the hints are missing. Since we want to be able to generate VM images for 32 bit powerpc, add the virtio modules to GENERIC like we do on powerpc64. Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D25271 --- sys/powerpc/conf/GENERIC | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/powerpc/conf/GENERIC b/sys/powerpc/conf/GENERIC index c17abd5000b3..114a194a4e0d 100644 --- a/sys/powerpc/conf/GENERIC +++ b/sys/powerpc/conf/GENERIC @@ -230,3 +230,12 @@ device snd_uaudio # USB Audio options EVDEV_SUPPORT # evdev support in legacy drivers device evdev # input event device support device uinput # install /dev/uinput cdev + +# VirtIO support +device virtio # Generic VirtIO bus (required) +device virtio_pci # VirtIO PCI device +device vtnet # VirtIO Ethernet device +device virtio_blk # VirtIO Block device +device virtio_scsi # VirtIO SCSI device +device virtio_balloon # VirtIO Memory Balloon device +