]> xenbits.xensource.com Git - libvirt.git/commit
qemu: monitor: Implement HMP version for listing all block device stats
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Mar 2015 16:23:49 +0000 (17:23 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 11 Mar 2015 10:28:04 +0000 (11:28 +0100)
commitf6563bc36159c04af84e9f3da213e7d5a4c2f890
treeff912512da38cc252381f9dc6e7622ce1dcc5b8b
parentfc4713454d8d0c2b81da8b7c1bfab80cc1507c72
qemu: monitor: Implement HMP version for listing all block device stats

Add a different version of parser for "info blockstats" that basically
parses the same information as the existing copy of the function.

This will allow us to remove the single device version
qemuMonitorGetBlockStatsInfo in the future.

The new implementation uses few new helpers so it should be more
understandable and provides a test case to verify that it works.
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor_text.c
src/qemu/qemu_monitor_text.h
tests/Makefile.am
tests/qemumonitortest.c