mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: memory-backend-ram capability probing
The numa patch series in qemu adds "memory-backend-ram" object type by which we can tell whether we can use such objects. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
7bc1db5a1d
commit
ad064ec6e6
@ -260,6 +260,8 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
|||||||
"msg-timestamp",
|
"msg-timestamp",
|
||||||
"active-commit",
|
"active-commit",
|
||||||
"change-backing-file",
|
"change-backing-file",
|
||||||
|
|
||||||
|
"memory-backend-ram", /* 170 */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -1477,6 +1479,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
|
|||||||
{ "ich9-intel-hda", QEMU_CAPS_DEVICE_ICH9_INTEL_HDA },
|
{ "ich9-intel-hda", QEMU_CAPS_DEVICE_ICH9_INTEL_HDA },
|
||||||
{ "pvpanic", QEMU_CAPS_DEVICE_PANIC },
|
{ "pvpanic", QEMU_CAPS_DEVICE_PANIC },
|
||||||
{ "usb-kbd", QEMU_CAPS_DEVICE_USB_KBD },
|
{ "usb-kbd", QEMU_CAPS_DEVICE_USB_KBD },
|
||||||
|
{ "memory-backend-ram", QEMU_CAPS_OBJECT_MEMORY_RAM },
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBlk[] = {
|
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBlk[] = {
|
||||||
|
@ -209,6 +209,7 @@ typedef enum {
|
|||||||
QEMU_CAPS_MSG_TIMESTAMP = 167, /* -msg timestamp */
|
QEMU_CAPS_MSG_TIMESTAMP = 167, /* -msg timestamp */
|
||||||
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_LAST, /* this must always be the last item */
|
QEMU_CAPS_LAST, /* this must always be the last item */
|
||||||
} virQEMUCapsFlags;
|
} virQEMUCapsFlags;
|
||||||
|
Loading…
Reference in New Issue
Block a user