On Wed, May 31, 2023 at 02:40:01PM -0600, Alex Williamson wrote:
Also note that we're saying "vfio" not
"vfio-pci". Only the mdev
interface has the device_api attribute to indicate the exported vfio
device interface. The "vfio_pci:" match in modalias indicates a vfio
PCI driver, not necessarily a driver that provides a vfio-pci API.
modalias was designed so you take the /sys/.../modalias file, prepend
vfio_ then do a standard modalias search on that string. The matching
module should be loaded and the module name bound to the device as the
driver name.
There should be no bus type dependencies in any of this in management
code.
Jason