[vfio-users] new video card. vm wont boot

Roger Lawhorn rll at twc.com
Mon Jun 1 13:33:41 UTC 2020


ok.

$ grep VFIO config-5.4.43-050443-generic
CONFIG_KVM_VFIO=y
CONFIG_VFIO_IOMMU_TYPE1=y
CONFIG_VFIO_VIRQFD=y
CONFIG_VFIO=y
CONFIG_VFIO_NOIOMMU=y
CONFIG_VFIO_PCI=y
CONFIG_VFIO_PCI_VGA=y
CONFIG_VFIO_PCI_MMAP=y
CONFIG_VFIO_PCI_INTX=y
CONFIG_VFIO_PCI_IGD=y
CONFIG_VFIO_MDEV=m
CONFIG_VFIO_MDEV_DEVICE=m
# CONFIG_SAMPLE_VFIO_MDEV_MTTY is not set
# CONFIG_SAMPLE_VFIO_MDEV_MDPY is not set
# CONFIG_SAMPLE_VFIO_MDEV_MDPY_FB is not set
# CONFIG_SAMPLE_VFIO_MDEV_MBOCHS is not set



so if it's built in, then why does it not load?
I am thinking that they changed how you define vfio-pci options in some way.
I define them in a config file in /etc/modprobe.d/ and then rebuild all 
ramdisks.

$ cat /etc/modprobe.d/rad-vfiobind.conf
options vfio-pci ids=1002:7340,1002:ab38

on boot the card is not owned by vfio-pci or any driver.

$ lspci -nnk | grep -i vga -A 6
0d:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. 
[AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M] [1002:7340] (rev c5)
     Subsystem: ASRock Incorporation Device [1849:5123]
     Kernel modules: amdgpu
0d:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 
10 HDMI Audio [1002:ab38]
     Subsystem: ASRock Incorporation Device [1849:5123]
     Kernel driver in use: snd_hda_intel
     Kernel modules: snd_hda_intel


On 6/1/20 6:46 AM, Bronek Kozicki wrote:
> I do not think there were actually changes in the kernel; see your kernel config instead. On Mint, this should be in /boot/config-* files
>
> For example my Ubuntu Focal is showing most of vfio drivers are built into kernel rather than as modules:
>
> bronek at lipowa /lib/modules/5.4.0-33-generic % find -name '*vfio*'
> ./kernel/drivers/vfio
> ./kernel/drivers/vfio/mdev/vfio_mdev.ko
> bronek at lipowa /lib/modules/5.4.0-33-generic % cd /boot
> bronek at lipowa /boot % grep VFIO config-5.4.0-33-generic
> CONFIG_KVM_VFIO=y
> CONFIG_VFIO_IOMMU_TYPE1=y
> CONFIG_VFIO_VIRQFD=y
> CONFIG_VFIO=y
> CONFIG_VFIO_NOIOMMU=y
> CONFIG_VFIO_PCI=y
> CONFIG_VFIO_PCI_VGA=y
> CONFIG_VFIO_PCI_MMAP=y
> CONFIG_VFIO_PCI_INTX=y
> CONFIG_VFIO_PCI_IGD=y
> CONFIG_VFIO_MDEV=m
> CONFIG_VFIO_MDEV_DEVICE=m
> # CONFIG_SAMPLE_VFIO_MDEV_MTTY is not set
> # CONFIG_SAMPLE_VFIO_MDEV_MDPY is not set
> # CONFIG_SAMPLE_VFIO_MDEV_MDPY_FB is not set
> # CONFIG_SAMPLE_VFIO_MDEV_MBOCHS is not set
>
>
>
>




More information about the vfio-users mailing list