On Wed, Jun 08, 2016 at 10:22:19 +0200, Jiri Denemark wrote:
This patch splits qemuMonitorJSONGetCPUx86Data in three functions:
- qemuMonitorJSONCheckCPUx86 checks if QEMU supports reporting CPUID
features for a guest CPU
- qemuMonitorJSONParseCPUx86Features parses CPUID features from a JSON
array
- qemuMonitorJSONGetCPUx86Data gets the requested guest CPU property
from QOM and uses qemuMonitorJSONParseCPUx86Features to parse it
Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
src/qemu/qemu_monitor_json.c | 183 +++++++++++++++++++++++++------------------
src/qemu/qemu_monitor_json.h | 4 +
2 files changed, 109 insertions(+), 78 deletions(-)
ACK