]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: capabilitity: Introduce QEMU_CAPS_SPAPR_PCI_HOST_BRIDGE_NUMA_NODE
authorShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Fri, 21 Jul 2017 08:02:32 +0000 (13:32 +0530)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 21 Jul 2017 13:46:29 +0000 (15:46 +0200)
The patch adds a capability for spapr-pci-host-bridge.numa_node.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.replies
tests/qemucapabilitiesdata/caps_2.9.0.ppc64le.replies
tests/qemucapabilitiesdata/caps_2.9.0.ppc64le.xml

index b7351322bca1af15896a3b9f71558e716122fe9e..c3f49a9754d409d4a41338a264d40b59fdee8d44 100644 (file)
@@ -431,6 +431,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
               "virtio.ats",
               "loadparm",
               "spapr-pci-host-bridge",
+              "spapr-pci-host-bridge.numa_node",
     );
 
 
@@ -1702,6 +1703,10 @@ static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioNet[] = {
     { "host_mtu", QEMU_CAPS_VIRTIO_NET_HOST_MTU },
 };
 
+static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsSpaprPCIHostBridge[] = {
+    { "numa_node", QEMU_CAPS_SPAPR_PCI_HOST_BRIDGE_NUMA_NODE },
+};
+
 static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioSCSI[] = {
     { "iothread", QEMU_CAPS_VIRTIO_SCSI_IOTHREAD },
 };
@@ -1902,6 +1907,9 @@ static struct virQEMUCapsObjectTypeProps virQEMUCapsObjectProps[] = {
     { "intel-iommu", virQEMUCapsObjectPropsIntelIOMMU,
       ARRAY_CARDINALITY(virQEMUCapsObjectPropsIntelIOMMU),
       QEMU_CAPS_DEVICE_INTEL_IOMMU},
+    { "spapr-pci-host-bridge", virQEMUCapsObjectPropsSpaprPCIHostBridge,
+      ARRAY_CARDINALITY(virQEMUCapsObjectPropsSpaprPCIHostBridge),
+      QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE },
 };
 
 struct virQEMUCapsPropTypeObjects {
index bd44b900027a82085869e66b69eee6e976f41284..19f59a6d41c5f308c4002c4b16527b0f1124dec4 100644 (file)
@@ -417,6 +417,7 @@ typedef enum {
     QEMU_CAPS_VIRTIO_PCI_ATS, /* virtio-*-pci.ats */
     QEMU_CAPS_LOADPARM, /* -machine loadparm */
     QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE, /* -device spapr-pci-host-bridge */
+    QEMU_CAPS_SPAPR_PCI_HOST_BRIDGE_NUMA_NODE, /* spapr-pci-host-bridge.numa_node= */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
index 635026968494d01d945119b30a179942bc2fa5b4..2e4fa72daa5d1c7889dcde9f6a602da6496ad9d1 100644 (file)
   "id": "libvirt-40"
 }
 
+{
+  "return": [
+    {
+      "name": "dynamic-reconfiguration",
+      "type": "bool"
+    },
+    {
+      "name": "dma_win_size",
+      "type": "uint64"
+    },
+    {
+      "name": "dma_win_addr",
+      "type": "uint64"
+    },
+    {
+      "name": "io_win_size",
+      "type": "uint64"
+    },
+    {
+      "name": "mem_win_size",
+      "type": "uint64"
+    },
+    {
+      "name": "buid",
+      "type": "uint64"
+    },
+    {
+      "name": "io_win_addr",
+      "type": "uint64"
+    },
+    {
+      "name": "liobn",
+      "type": "uint32"
+    },
+    {
+      "name": "mem_win_addr",
+      "type": "uint64"
+    },
+    {
+      "name": "index",
+      "type": "uint32"
+    }
+  ],
+  "id": "libvirt-41"
+}
+
 {
   "return": [
     {
       "cpu-max": 255
     }
   ],
-  "id": "libvirt-41"
+  "id": "libvirt-42"
 }
 
 {
       "name": "MPC8541E_v11"
     }
   ],
-  "id": "libvirt-42"
+  "id": "libvirt-43"
 }
 
 {
   "return": [
   ],
-  "id": "libvirt-43"
+  "id": "libvirt-44"
 }
 
 {
   "return": [
   ],
-  "id": "libvirt-44"
+  "id": "libvirt-45"
 }
 
 {
       "option": "drive"
     }
   ],
-  "id": "libvirt-45"
+  "id": "libvirt-46"
 }
 
 {
       "capability": "postcopy-ram"
     }
   ],
-  "id": "libvirt-46"
+  "id": "libvirt-47"
 }
 
 {
       "meta-type": "array"
     }
   ],
-  "id": "libvirt-47"
+  "id": "libvirt-48"
 }
 
 {
index 0c85f9ed457ebb1cf07676e2080c7911db4ebf82..0b286dc967e073704a08e1fdf2cae84d8f44ad24 100644 (file)
   "id": "libvirt-40"
 }
 
+{
+  "return": [
+    {
+      "name": "dynamic-reconfiguration",
+      "type": "bool"
+    },
+    {
+      "name": "ddw",
+      "type": "bool"
+    },
+    {
+      "name": "dma_win_size",
+      "type": "uint64"
+    },
+    {
+      "name": "numa_node",
+      "type": "uint32"
+    },
+    {
+      "name": "pre-2.8-migration",
+      "type": "bool"
+    },
+    {
+      "name": "mem64_win_size",
+      "type": "uint64"
+    },
+    {
+      "name": "pgsz",
+      "type": "uint64"
+    },
+    {
+      "name": "liobn64",
+      "type": "uint32"
+    },
+    {
+      "name": "dma_win_addr",
+      "type": "uint64"
+    },
+    {
+      "name": "io_win_size",
+      "type": "uint64"
+    },
+    {
+      "name": "mem_win_size",
+      "type": "uint64"
+    },
+    {
+      "name": "buid",
+      "type": "uint64"
+    },
+    {
+      "name": "dma64_win_addr",
+      "type": "uint64"
+    },
+    {
+      "name": "mem64_win_addr",
+      "type": "uint64"
+    },
+    {
+      "name": "pcie-extended-configuration-space",
+      "type": "bool"
+    },
+    {
+      "name": "io_win_addr",
+      "type": "uint64"
+    },
+    {
+      "name": "liobn",
+      "type": "uint32"
+    },
+    {
+      "name": "mem_win_addr",
+      "type": "uint64"
+    },
+    {
+      "name": "mem64_win_pciaddr",
+      "type": "uint64"
+    },
+    {
+      "name": "index",
+      "type": "uint32"
+    }
+  ],
+  "id": "libvirt-41"
+}
+
 {
   "return": [
     {
       "cpu-max": 1
     }
   ],
-  "id": "libvirt-41"
+  "id": "libvirt-42"
 }
 
 {
       "static": false
     }
   ],
-  "id": "libvirt-42"
+  "id": "libvirt-43"
 }
 
 {
   "return": [
   ],
-  "id": "libvirt-43"
+  "id": "libvirt-44"
 }
 
 {
   "return": [
   ],
-  "id": "libvirt-44"
+  "id": "libvirt-45"
 }
 
 {
       "option": "drive"
     }
   ],
-  "id": "libvirt-45"
+  "id": "libvirt-46"
 }
 
 {
       "capability": "release-ram"
     }
   ],
-  "id": "libvirt-46"
+  "id": "libvirt-47"
 }
 
 {
       "meta-type": "object"
     }
   ],
-  "id": "libvirt-47"
+  "id": "libvirt-48"
 }
 
 {
index 29721b04f096d37f6c1840f6a17fa3abeb4515d5..ba22878fe29265b253bf3c1dea6f1fad9a1bd9b6 100644 (file)
   <flag name='virtio.iommu_platform'/>
   <flag name='virtio.ats'/>
   <flag name='spapr-pci-host-bridge'/>
+  <flag name='spapr-pci-host-bridge.numa_node'/>
   <version>2009000</version>
   <kvmVersion>0</kvmVersion>
   <package> (v2.9.0)</package>