]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildShmemCommandLine: Generate via JSON
authorPeter Krempa <pkrempa@redhat.com>
Mon, 27 Sep 2021 17:26:32 +0000 (19:26 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:03 +0000 (10:26 +0200)
commit82bf36e551c25e6f6e4c4623a54da75e3f8800a4
treeab48701eaa726b6cf77ac36daaab29a7750cdabc
parent04f007e7b3ae1e9f559218e2c92fecbb5673ad09
qemuBuildShmemCommandLine: Generate via JSON

Note that the legacy 'ivshmem' device was already removed upstream, but
it's converted so that the code is identical.

For the two modern devices QEMU considers the properties being of
following types:

'ivshmem-doorbell'
  chardev=<str>          - ID of a chardev to use as a backend
  ioeventfd=<bool>       - on/off (default: true)
  master=<OnOffAuto>     - on/off/auto (default: "off")
  vectors=<uint32>       -  (default: 1)

'ivshmem-plain'
  master=<OnOffAuto>     - on/off/auto (default: "off")
  memdev=<link<memory-backend>>

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