mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: newer -numa parameter capability probing
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>
This commit is contained in:
parent
ad064ec6e6
commit
1a324c2f88
@ -262,6 +262,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
|||||||
"change-backing-file",
|
"change-backing-file",
|
||||||
|
|
||||||
"memory-backend-ram", /* 170 */
|
"memory-backend-ram", /* 170 */
|
||||||
|
"numa",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -2426,6 +2427,7 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
|
|||||||
{ "boot-opts", "reboot-timeout", QEMU_CAPS_REBOOT_TIMEOUT },
|
{ "boot-opts", "reboot-timeout", QEMU_CAPS_REBOOT_TIMEOUT },
|
||||||
{ "spice", "disable-agent-file-xfer", QEMU_CAPS_SPICE_FILE_XFER_DISABLE },
|
{ "spice", "disable-agent-file-xfer", QEMU_CAPS_SPICE_FILE_XFER_DISABLE },
|
||||||
{ "msg", "timestamp", QEMU_CAPS_MSG_TIMESTAMP },
|
{ "msg", "timestamp", QEMU_CAPS_MSG_TIMESTAMP },
|
||||||
|
{ "numa", NULL, QEMU_CAPS_NUMA },
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -210,6 +210,7 @@ typedef enum {
|
|||||||
QEMU_CAPS_ACTIVE_COMMIT = 168, /* block-commit works without 'top' */
|
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_CHANGE_BACKING_FILE = 169, /* change name of backing file in metadata */
|
||||||
QEMU_CAPS_OBJECT_MEMORY_RAM = 170, /* -object memory-backend-ram */
|
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 */
|
QEMU_CAPS_LAST, /* this must always be the last item */
|
||||||
} virQEMUCapsFlags;
|
} virQEMUCapsFlags;
|
||||||
|
@ -142,4 +142,5 @@
|
|||||||
<flag name='usb-kbd'/>
|
<flag name='usb-kbd'/>
|
||||||
<flag name='host-pci-multidomain'/>
|
<flag name='host-pci-multidomain'/>
|
||||||
<flag name='msg-timestamp'/>
|
<flag name='msg-timestamp'/>
|
||||||
|
<flag name='numa'/>
|
||||||
</qemuCaps>
|
</qemuCaps>
|
||||||
|
@ -2386,6 +2386,11 @@
|
|||||||
],
|
],
|
||||||
"option": "netdev"
|
"option": "netdev"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"parameters": [
|
||||||
|
],
|
||||||
|
"option": "numa"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"parameters": [
|
"parameters": [
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user