]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virpci: Drop 'pci-stub' driver
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Aug 2019 10:01:47 +0000 (12:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Aug 2019 08:48:34 +0000 (10:48 +0200)
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>
src/util/virpci.c
src/util/virpci.h

index 4c7c26f9814ea90edb515171cc2fb877131386ab..9c9ffa55c27965b27309b70e4221294a7baaa770 100644 (file)
@@ -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;
 
index 50748517779e7fd2ff6d57243a5a39cc482eb0b1..4ac0d230a467e8bfdb6135bbe2b1658d67eba8e3 100644 (file)
@@ -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;