]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: always assume QEMU_CAPS_PCI_BOOTINDEX
authorJán Tomko <jtomko@redhat.com>
Fri, 7 Sep 2018 11:31:23 +0000 (13:31 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 7 Sep 2018 15:26:17 +0000 (17:26 +0200)
At the time of the addition of 'pci-assign' in QEMU commit
v1.3.0-rc0~572^2 the bootindex argument was already supported.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
14 files changed:
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml
tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml
tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml
tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml

index 7391d217b1494a1289f8374884f878109bf14eb6..b4658541c59ec0b2d5225e308357b3c2a9c0b619 100644 (file)
@@ -1192,7 +1192,6 @@ static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioSCSI[] = {
 };
 
 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsPCIAssign[] = {
-    { "bootindex", QEMU_CAPS_PCI_BOOTINDEX },
 };
 
 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVfioPCI[] = {
index 416db3bc146a0d8ab71e2e0d91ccc5f1d6cb8031..0bd280f1d34e2e0703bde774b8fd035f65c19013 100644 (file)
@@ -121,7 +121,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
     QEMU_CAPS_HDA_DUPLEX, /* -device hda-duplex */
     X_QEMU_CAPS_DRIVE_AIO, /* -drive aio= supported */
     X_QEMU_CAPS_PCI_MULTIBUS, /* bus=pci.0 vs bus=pci */
-    QEMU_CAPS_PCI_BOOTINDEX, /* pci-assign.bootindex */
+    X_QEMU_CAPS_PCI_BOOTINDEX, /* pci-assign.bootindex */
     QEMU_CAPS_CCID_EMULATED, /* -device ccid-card-emulated */
 
     /* 55 */
index 64360865601927b8573a5cf377761c49e54ae6ee..88db9c6945dc234ec56fe576bac33556e75fdb55 100644 (file)
@@ -5335,14 +5335,6 @@ qemuBuildHostdevCommandLine(virCommandPtr cmd,
                                              "is not supported with this version of qemu"));
                             return -1;
                         }
-                    } else {
-                        if (!virQEMUCapsGet(qemuCaps,
-                                            QEMU_CAPS_PCI_BOOTINDEX)) {
-                            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                                           _("booting from assigned PCI devices is not "
-                                             "supported with this version of qemu"));
-                            return -1;
-                        }
                     }
                 }
                 if (subsys->type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB &&
index 0af377b521386bfb126cd0083bd75e08bb4cb0af..355d9b55afbe51eea9fc10a02b698853e55a85db 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index 465ec07bc4a7f17c5772507cc6b5c9bfdb14d4c7..903cb5b110e9389554b52f6c26f007e90dad2584 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index ba866f8cd7c302027674d174674ea3fdee11170f..f6f4c4bf499ac8a5362a3a9649dcd70a48970874 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index 432546b0100b3e1f6f19b415bfe157780e9de0f4..807a0309a8bccf720d6cb78cb339c7314c053fda 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index efabdc5403d91c9bd13693a99b11974cb55b42b4..9e555473ac9aeb63e48a26fd17e93425dde31f3f 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index 1232692f3c3cbd3b03aa26826736847c54b12fbb..c568a12f7c2102c3b0ffe58af50ee9c7f485677b 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index 9cac24bedf57cead7f96c39bf45ee7088f2fc71a..0f55489dec71379f82c901692604d384422d4f4f 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index da873789817432df5e895bc954d959e89c7b7503..f86147a48bb31f55c4d769d39be75345bbc240d2 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index ce92b24d3eb79c6b4381565ecbb1ee8b85291c1c..b2f221c00419b40598faab3278c1122ae27b9e7e 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index c9a4eccc7964446aa78776c25192592ddb4e185c..5f78ed20003592e5cccebb7842e1a9f4e3e1be89 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>
index f6eaaf1b8186ff53b12949f08fd743b967d0b76d..86f24c415bcbe5f6ba88ec6b7504953aadc4b61f 100644 (file)
@@ -7,7 +7,6 @@
   <flag name='no-hpet'/>
   <flag name='spice'/>
   <flag name='hda-duplex'/>
-  <flag name='pci-bootindex'/>
   <flag name='ccid-emulated'/>
   <flag name='ccid-passthru'/>
   <flag name='virtio-tx-alg'/>