]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add monitor functions to set IOThread params
authorJohn Ferlan <jferlan@redhat.com>
Wed, 3 Oct 2018 22:13:14 +0000 (18:13 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 19 Nov 2018 12:26:40 +0000 (07:26 -0500)
commit3083bf18da04238682ffa400480b35effb2870bc
tree2d0e127d94d0d0700c3b77902c32257c13c9ddc3
parentae69bda5c2c044b1241e4549ec2896f09bb77328
qemu: Add monitor functions to set IOThread params

Add functions to set the IOThreadInfo param data for the live guest.
Modify the _qemuMonitorIOThreadInfo to have a flag to indicate when
a value was set so that we don't set a value unless it was desired
to be set.

Based on code originally posted by Pavel Hrdina <phrdina@redhat.com>,
but extracted into a separate patch. Note that qapi expects to receive
integer parameters rather than unsigned long long or unsigned int's.
QEMU does save the value in larger signed 64 bit values eventually.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h