]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: capabilities: Introduce QEMU_CAPS_NETDEV_JSON
authorPeter Krempa <pkrempa@redhat.com>
Fri, 24 Sep 2021 14:27:32 +0000 (16:27 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:00 +0000 (10:26 +0200)
Introduce a capability that will be asserted once '-netdev' will accept
JSON. For now it will be dormant (only used by tests).

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h

index 8657275442c2142a33e33bbac7a4504507031a6e..85868d7596f7a322d9c50d2d571c755a1030087a 100644 (file)
@@ -645,6 +645,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
               "memory-backend-file.reserve", /* QEMU_CAPS_MEMORY_BACKEND_RESERVE */
               "piix4.acpi-root-pci-hotplug", /* QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG */
               "ich9.acpi-hotplug-bridge", /* QEMU_CAPS_ICH9_ACPI_HOTPLUG_BRIDGE */
+              "netdev.json", /* QEMU_CAPS_NETDEV_JSON */
     );
 
 
index 02b96de52357ca8323c4dfe39dc720db207d870d..80e2d58dde3a68370ab75b496aa60be5db9491c5 100644 (file)
@@ -625,6 +625,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
     QEMU_CAPS_MEMORY_BACKEND_RESERVE, /* -object memory-backend-*.reserve= */
     QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG, /* -M pc PIIX4_PM.acpi-root-pci-hotplug */
     QEMU_CAPS_ICH9_ACPI_HOTPLUG_BRIDGE, /* -M q35 ICH9-LPC.acpi-pci-hotplug-with-bridge-support */
+    QEMU_CAPS_NETDEV_JSON, /* -netdev accepts JSON */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;