mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
virpci: Drop 'pci-stub' driver
Now that no one uses KVM style of PCI assignment we can safely remove 'pci-stub' backend. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
2e7225ea8c
commit
b8e7e9be9a
@ -54,7 +54,6 @@ VIR_ENUM_IMPL(virPCIStubDriver,
|
||||
VIR_PCI_STUB_DRIVER_LAST,
|
||||
"none",
|
||||
"pciback", /* XEN */
|
||||
"pci-stub", /* KVM */
|
||||
"vfio-pci", /* VFIO */
|
||||
);
|
||||
|
||||
@ -1541,16 +1540,6 @@ virPCIDeviceReattach(virPCIDevicePtr dev,
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Wait for device cleanup if it is qemu/kvm */
|
||||
if (virPCIDeviceGetStubDriver(dev) == VIR_PCI_STUB_DRIVER_KVM) {
|
||||
int retries = 100;
|
||||
while (virPCIDeviceWaitForCleanup(dev, "kvm_assigned_device")
|
||||
&& retries) {
|
||||
usleep(100*1000);
|
||||
retries--;
|
||||
}
|
||||
}
|
||||
|
||||
if (virPCIDeviceUnbindFromStub(dev) < 0)
|
||||
return -1;
|
||||
|
||||
|
@ -59,7 +59,6 @@ struct _virPCIDeviceAddress {
|
||||
typedef enum {
|
||||
VIR_PCI_STUB_DRIVER_NONE = 0,
|
||||
VIR_PCI_STUB_DRIVER_XEN,
|
||||
VIR_PCI_STUB_DRIVER_KVM,
|
||||
VIR_PCI_STUB_DRIVER_VFIO,
|
||||
VIR_PCI_STUB_DRIVER_LAST
|
||||
} virPCIStubDriver;
|
||||
|
Loading…
x
Reference in New Issue
Block a user