]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refactor qemuMonitorJSONGetCPUx86Data
authorJiri Denemark <jdenemar@redhat.com>
Fri, 3 Jun 2016 14:59:59 +0000 (16:59 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 9 Jun 2016 07:47:56 +0000 (09:47 +0200)
commit2a8d40f4ecaff1e0c44da58dd244cbd23319dc69
tree7755b8cf43438cff5b36b3c1d50b342148b5d9a3
parent90f4bc34b549569c51abcdac853c8c954e727f7c
qemu: Refactor qemuMonitorJSONGetCPUx86Data

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@redhat.com>
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h