Re: [libvirt PATCH 01/15] util: properly deal with module vs. driver when binding device to driver

2023-10-23 Thread Jason Gunthorpe
On Mon, Oct 23, 2023 at 12:54:37AM -0400, Laine Stump wrote: > When we recently gained the ability to manually specify a driver to > bind to with virsh nodedev-detach, the fragility of this system became > apparent - if a user gives the driver name as "vfio_pci", then we > would modprobe the

[libvirt PATCH 01/15] util: properly deal with module vs. driver when binding device to driver

2023-10-22 Thread Laine Stump
Historically libvirt has treated the concept of "loadable kernel module" and "device driver" as being effectively the same (at least in the case of the vfio-pci driver used for VFIO device assignment). The code assumed that a module named "vfio-pci" implemented a driver named "vfio-pci". In