]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Allow using 'qdev' instead of 'device' for getting disk throttling
authorPeter Krempa <pkrempa@redhat.com>
Wed, 25 Jul 2018 13:14:43 +0000 (15:14 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2018 13:46:06 +0000 (15:46 +0200)
commit343969bac370e0c993f56a163b85782d9b9b0a97
treeb9837d6a3e86a89169dcc4aaceed3d843c723575
parent52096e23388ba2f4cb269043ea2952fd2ff52575
qemu: monitor: Allow using 'qdev' instead of 'device' for getting disk throttling

The 'device' field reported by 'query-block' is empty when -blockdev is
used. Add an argument which will allow matching disk by using the qdev
id so we can use this code with -blockdev.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
tests/qemumonitorjsontest.c