]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Retrieve blockstats also by qdev and node-names
authorPeter Krempa <pkrempa@redhat.com>
Fri, 3 Aug 2018 14:22:19 +0000 (16:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2018 13:46:06 +0000 (15:46 +0200)
commitd703306cd9a116397d58bacfdc80265bca2ac0a8
treecf35fd4cb7cf7a69078ee3516e518669a58c8ece
parentb222ce3075bce17836e7c193c4fee18380ff7793
qemu: monitor: Retrieve blockstats also by qdev and node-names

For use with -blockdev we need to be able to retrieve the stats by
'qdev' for the frontend device stats since 'device' will be empty. Note
that for non-blockdev case qdev and 'device' with 'drive-' skipped would
be the same.

Additionally so that we can report the highest written offset we need to
also be able to access them by node-name for backing chain purposes.

In cases when 'device' is empty it does not make sense to gather them.

Allow arranging the stats simultaneously in all the above dimensions.

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