[PATCH 011/103] qemu: command: Format netdev as JSON when QEMU_CAPS_NETDEV_JSON is present

Ján Tomko jtomko at redhat.com
Fri Oct 8 12:12:09 UTC 2021


On a Thursday in 2021, Peter Krempa wrote:
>Base the JSON output on a regular capability flag rather than purely
>internal flag. This will prepare for the time when QEMU will accept JSON
>argumets for -netdev.
>
>For now the capability is not set (thus we for now don't have QMP
>schema validation) but that will be addressed later.
>
>To achieve this 'qemuBuildNetdevCommandlineFromJSON' is introduced
>and all callers of 'virQEMUBuildNetdevCommandlineFromJSON' are
>refactored to use the new helper.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/libvirt_private.syms |  1 +
> src/qemu/qemu_command.c  | 55 ++++++++++++++++++++++++++--------------
> src/util/virqemu.c       |  2 +-
> src/util/virqemu.h       |  4 +++
> 4 files changed, 42 insertions(+), 20 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211008/2bab57a7/attachment-0001.sig>


More information about the libvir-list mailing list