]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: add capabilities bit for device "pxb-pcie"
authorLaine Stump <laine@laine.org>
Tue, 8 Mar 2016 21:25:22 +0000 (16:25 -0500)
committerLaine Stump <laine@laine.org>
Thu, 14 Apr 2016 18:00:34 +0000 (14:00 -0400)
    The pxb device is a PCIe expander bus that can be added to any
    Q35-based machinetype. A single PCIe port (*not* hotpluggable) is
    provided; if more than one device is desired, or if hotplug
    support is needed, either a pcie-root-port, or some combination of
    pcie-switch-upstream-port and pcie-swith-downstream-ports must be
    added to it. It can have a NUMA node number associated with it, as
    well as a bus number.

src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_2.6.0-1.caps
tests/qemucapabilitiesdata/caps_2.6.0-1.replies

index 98e9950e9bf1cf48f0ed8f79d19237c3c91f88c1..621f39ae87d08762cc7283302725457559ae8d84 100644 (file)
@@ -323,6 +323,8 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
               "debug-threads",
               "secret",
               "pxb",
+
+              "pxb-pcie", /* 220 */
     );
 
 
@@ -1579,6 +1581,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
     { "mptsas1068", QEMU_CAPS_SCSI_MPTSAS1068 },
     { "secret", QEMU_CAPS_OBJECT_SECRET },
     { "pxb", QEMU_CAPS_DEVICE_PXB },
+    { "pxb-pcie", QEMU_CAPS_DEVICE_PXB_PCIE },
 };
 
 static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBalloon[] = {
index f5e783e2e6de5cb1817804b6b95b182efb78374f..cfda5eed7f426cefc44462c28ecb0a05fad7e7b7 100644 (file)
@@ -354,6 +354,9 @@ typedef enum {
     QEMU_CAPS_OBJECT_SECRET, /* -object secret */
     QEMU_CAPS_DEVICE_PXB, /* -device pxb */
 
+    /* 220 */
+    QEMU_CAPS_DEVICE_PXB_PCIE, /* -device pxb-pcie */
+
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
 
index 32046bf0dfea1f91da2319644655f58491502fe8..543b633a1c05a22d9b6e398d20a847fb19621c3b 100644 (file)
     <flag name='debug-threads'/>
     <flag name='secret'/>
     <flag name='pxb'/>
+    <flag name='pxb-pcie'/>
   </qemuCaps>
index 7590b5bd8d577755484281a93e36f083a0729ad2..8a4c3fe3c8261adf43f2674170d5efcbafba2e69 100644 (file)
     {
       "name": "pxb"
     },
+    {
+      "name": "pxb-pcie"
+    },
     {
       "name": "kvm64-x86_64-cpu"
     },