]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: capabilities: Introduce QEMU_CAPS_OBJECT_QAPIFIED
authorPeter Krempa <pkrempa@redhat.com>
Fri, 27 Nov 2020 06:06:13 +0000 (07:06 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 23 Mar 2021 13:06:31 +0000 (14:06 +0100)
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 <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h

index 4ab694de760738d674f1ef9081c9febc9f27d7c9..b9e3487549d8f84bceeaade72f07182ce8b3d13d 100644 (file)
@@ -623,6 +623,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
               "vnc-power-control",
               "audiodev",
               "blockdev-backup",
+              "object.qapified",
     );
 
 
index 792cb91ce1e5a5ae7771e50eb22aedab099625ce..da51a788fa674f989739a642dbfec21bde13fce0 100644 (file)
@@ -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;