libvirt/src/hypervisor
Laine Stump 41fe852487 Set stubDriverName from hostdev driver model attribute during pci device setup
commit v9.10.0-129-g8b93d78c83 (first appearing in libvirt-10.0.0) was
supposed to allow forcing a PCI hostdev to be bound to a particular
driver by adding <driver model='blah'/> to the XML for the
device. Unfortunately, a single line was missed during the final
changes to the patch prior to pushing, and the result was that the
driver model could be set to *anything* and it would be accepted but
just ignored.

This patch adds the missing line, which will set the stubDriverName
field of the virPCIDevice object from the hostdev object as the
virPCIDevice is being created. This ends up being used by
virPCIDeviceBindToStub() as the driver that it binds the device to.

Fixes: 8b93d78c83
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2024-02-20 11:19:44 -05:00
..
domain_cgroup.c hypervisor: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
domain_cgroup.h hypervisor: Drop dead code in virDomainCgroupSetupGlobalCpuCgroup() 2022-04-07 12:12:05 +02:00
domain_driver.c qemu: Implement support for configuring iothread to virtqueue mapping for disks 2024-01-08 09:27:31 +01:00
domain_driver.h node_device: support binding other drivers with virNodeDeviceDetachFlags() 2023-08-24 23:36:18 -04:00
domain_interface.c hypervisor: Move domain interface mgmt methods 2024-02-02 10:58:26 +01:00
domain_interface.h hypervisor: Move domain interface mgmt methods 2024-02-02 10:58:26 +01:00
meson.build hypervisor: Move domain interface mgmt methods 2024-02-02 10:58:26 +01:00
virclosecallbacks.c virclosecallbacks: Remove old close callbacks code 2023-01-06 15:30:09 +01:00
virclosecallbacks.h virclosecallbacks: Remove old close callbacks code 2023-01-06 15:30:09 +01:00
virhostdev.c Set stubDriverName from hostdev driver model attribute during pci device setup 2024-02-20 11:19:44 -05:00
virhostdev.h conf: replace virHostdevIsVFIODevice with virHostdevIsPCIDevice 2024-01-07 23:58:44 -05:00