From: Peter Krempa Date: Fri, 27 Nov 2020 06:06:13 +0000 (+0100) Subject: qemu: capabilities: Introduce QEMU_CAPS_OBJECT_QAPIFIED X-Git-Tag: v7.2.0-rc1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d50ecc9bb2be88a56f00cd60335215b0d1132c2;p=thirdparty%2Flibvirt.git qemu: capabilities: Introduce QEMU_CAPS_OBJECT_QAPIFIED Starting from qemu-6.0 the parameters of -object/object-add are formally described by the QAPI schema. Additionally this changes the nesting of the properties as the 'props' nested object will be flattened to the parent. We'll need to detect whether qemu switched to this new approach to generate the objects with proper nesting and also allow testing. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 4ab694de76..b9e3487549 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -623,6 +623,7 @@ VIR_ENUM_IMPL(virQEMUCaps, "vnc-power-control", "audiodev", "blockdev-backup", + "object.qapified", ); diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index 792cb91ce1..da51a788fa 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -603,6 +603,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */ QEMU_CAPS_VNC_POWER_CONTROL, /* -vnc power-control option */ QEMU_CAPS_AUDIODEV, /* -audiodev instead of QEMU_AUDIO_DRV */ QEMU_CAPS_BLOCKDEV_BACKUP, /* qemu supports the blockdev-backup job */ + QEMU_CAPS_OBJECT_QAPIFIED, /* parameters for object-add are formally described */ QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags;