]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Introduce helper for building JSON props of -device into commandline
authorPeter Krempa <pkrempa@redhat.com>
Sat, 25 Sep 2021 07:08:05 +0000 (09:08 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:03 +0000 (10:26 +0200)
commitfeaeab09eac371b9c2abe2471fa86a52bf8cc918
treebcc3e146888dc38623ee93a6dad7326ce3e85fa2
parent89b5bc626a9a761563da88955de758d388dbbfd0
qemu: command: Introduce helper for building JSON props of -device into commandline

The helper converts the JSON object to a string and adds it to the
current command as arguments of '-device'. The helper also prepares for
'-device' taking JSON directly.

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