]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: capabilities: Explain that QEMU_CAPS_CHARDEV_JSON will be used in tests only
authorPeter Krempa <pkrempa@redhat.com>
Fri, 13 Sep 2024 08:45:38 +0000 (10:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 19 Sep 2024 08:30:14 +0000 (10:30 +0200)
I've added that capability a long time ago when I was converting various
stuff to use JSON but the support in '-chardev' didn't yet materialize.

Fix the comment to make that clear and also that it'll be used in tests
for the upcoming refactor of the chardev code (so that we can validate
generator against the schema even if that doesn't yet work).

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

index 5036d49aab88ce95bb424b306cf885d2fa5d8a96..736d34179e43478304cb4b095a8d519e88fd4a46 100644 (file)
@@ -623,7 +623,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_NETDEV_JSON, /* -netdev accepts JSON */
-    QEMU_CAPS_CHARDEV_JSON, /* -chardev accepts JSON */
+    QEMU_CAPS_CHARDEV_JSON, /* Reserved for '-chardev' JSON support. For now used only in tests. */
 
     /* 415 */
     X_QEMU_CAPS_DEVICE_JSON_BROKEN_HOTPLUG, /* -device accepts JSON (must not be used - users are filtering the capbility) */