]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Use JSON for parameters of -compat
authorPeter Krempa <pkrempa@redhat.com>
Mon, 8 Nov 2021 15:20:21 +0000 (16:20 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 17 Nov 2021 11:04:11 +0000 (12:04 +0100)
commit14af0a3290ef632a2e438f9e135aa65011597c79
treeaef17a66f98ed7020f12fd4a0ce112c0b6659725
parent12f48c53f5eee69e11438ffcdd28a9316bcee6bc
qemu: command: Use JSON for parameters of -compat

'-compat' as a modern implementation based on QAPI already takes JSON as
the argument. Convert our code to use it directly.

QEMU declares the ised QAPI types as:

{ 'enum': 'CompatPolicyInput',
  'data': [ 'accept', 'reject', 'crash' ] }

{ 'enum': 'CompatPolicyOutput',
  'data': [ 'accept', 'hide' ] }

{ 'struct': 'CompatPolicy',
  'data': { '*deprecated-input': 'CompatPolicyInput',
            '*deprecated-output': 'CompatPolicyOutput' } }

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