]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildHostdevCommandLine: 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)
commit44b52c18e3964f98a4642dc7de2ef1d1423a8e4d
tree91b10523367cab553a3ececc8505d7fd333ca3ca
parent9ac91fccebbea6a0d68c5b2973ee50c132d7f9ce
qemuBuildHostdevCommandLine: Generate via JSON

Build the properties of 'vhost-scsi' 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 'vhost-scsi' device doesn't have any special (non-string) properties.

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