]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Refactor parsing of block device IO tuning parameters.
authorPeter Krempa <pkrempa@redhat.com>
Thu, 9 Aug 2012 07:58:05 +0000 (09:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 9 Aug 2012 11:59:08 +0000 (13:59 +0200)
commitaba9abc5b75c2558d8ec6d787c8a1b2148cd14ca
treebc2ec003be7b752cc368bfff9a8e538c25b210ce
parent6758ad4f9ee6c341bfb21db7346103efd4974e1d
qemu: Refactor parsing of block device IO tuning parameters.

This patch refactors the JSON parsing function that extracts the block
IO tuning parameters from qemu's output. The most impacting change
concerns the error message that is returned if the reply from qemu does
not contain the needed data. The data for IO parameter tuning were added
in qemu 1.1 and the previous error message was confusing.

This patch also breaks long lines and extracts a multiple time used code
pattern to a macro.
src/qemu/qemu_monitor_json.c