]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildVsockCommandLine: Generate via JSON
authorPeter Krempa <pkrempa@redhat.com>
Tue, 5 Oct 2021 13:39:42 +0000 (15:39 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 09:11:13 +0000 (11:11 +0200)
commit3b4cc1d5a6ff0a2ef296329c89bc9c9c01bfca32
tree14682add9ff61a19100e9c6f767e79066fe1a709
parent44b52c18e3964f98a4642dc7de2ef1d1423a8e4d
qemuBuildVsockCommandLine: Generate via JSON

Build the properties of 'vhost-vsock' device via JSON. In comparison to
previous similar refactors this also modifies the hotplug code to attach
the vhost fd handle explicitly rather than using
'qemuMonitorAddDeviceWithFd'.

The properties of vhost-vsock have the following types according to
QEMU:

  guest-cid=<uint64>     -  (default: 0)
  vhostfd=<str>

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