]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: newer -numa parameter capability probing
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 17 Jun 2014 11:43:19 +0000 (13:43 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 16 Jul 2014 18:15:46 +0000 (20:15 +0200)
When qemu switched to using OptsVisitor for -numa parameter, it did
two things in the same patch.  One of them is that the numa parameter
is now visible in "query-command-line-options", the second one is that
it enabled using disjoint cpu ranges for -numa specification.  This
will be used in later patch.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_1.6.50-1.caps
tests/qemucapabilitiesdata/caps_1.6.50-1.replies

index c1a89478d60f989372299ac01a7ca468fce02b13..07306e5fe7d6161924df2bb93a7cc168cb5a8686 100644 (file)
@@ -262,6 +262,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
               "change-backing-file",
 
               "memory-backend-ram", /* 170 */
+              "numa",
     );
 
 
@@ -2426,6 +2427,7 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
     { "boot-opts", "reboot-timeout", QEMU_CAPS_REBOOT_TIMEOUT },
     { "spice", "disable-agent-file-xfer", QEMU_CAPS_SPICE_FILE_XFER_DISABLE },
     { "msg", "timestamp", QEMU_CAPS_MSG_TIMESTAMP },
+    { "numa", NULL, QEMU_CAPS_NUMA },
 };
 
 static int
index c661d5a05e29d190b715028632657710bc6b5eda..43326339edd3c08051c62a465d89b32e3e2459d9 100644 (file)
@@ -210,6 +210,7 @@ typedef enum {
     QEMU_CAPS_ACTIVE_COMMIT      = 168, /* block-commit works without 'top' */
     QEMU_CAPS_CHANGE_BACKING_FILE = 169, /* change name of backing file in metadata */
     QEMU_CAPS_OBJECT_MEMORY_RAM  = 170, /* -object memory-backend-ram */
+    QEMU_CAPS_NUMA               = 171, /* newer -numa handling with disjoint cpu ranges */
 
     QEMU_CAPS_LAST,                   /* this must always be the last item */
 } virQEMUCapsFlags;
index 32bccdbbefb5f2687c9eafaea2bd97e04a0e54f0..4b9f693d7ebd7307e798edeb482b6ad19b3486cc 100644 (file)
     <flag name='usb-kbd'/>
     <flag name='host-pci-multidomain'/>
     <flag name='msg-timestamp'/>
+    <flag name='numa'/>
   </qemuCaps>
index a60542a333eb9d17950f4b3bdd79759a896617d5..ec7451f52736a380140f7f144dd4ccf54e32444c 100644 (file)
             ],
             "option": "netdev"
         },
+        {
+            "parameters": [
+            ],
+            "option": "numa"
+        },
         {
             "parameters": [
             ],