Re: [PATCH] util: basic support for vendor-specific vfio drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 01, 2022 at 09:49:28AM -0600, Alex Williamson wrote:

> > > > > Fortunately these new vendor/device-specific drivers can be easily
> > > > > identified as being "vfio-pci + extra stuff" - all that's needed is to
> > > > > look at the output of the "modinfo $driver_name" command to see if
> > > > > "vfio_pci" is in the alias list for the driver.

We are moving in a direction on the kernel side to expose a sysfs
under the PCI device that definitively says it is VFIO enabled, eg
something like

 /sys/devices/pci0000:00/0000:00:1f.6/vfio/<N>

Which is how every other subsystem in the kernel works. When this
lands libvirt can simply stat the vfio directory and confirm that the
device handle it is looking at is vfio enabled, for all things that
vfio support.

My thinking had been to do the above work a bit later, but if libvirt
needs it right now then lets do it right away so we don't have to
worry about this hacky modprobe stuff down the road?

There are already WIP patches for it here:

https://github.com/yiliu1765/iommufd/commit/7fff911c20f31dff933741771499170db123e79b

Regards,
Jason




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux