[libvirt] [PATCH 05/41] qemu: Refactor qemuMonitorJSONGetCPUx86Data

Peter Krempa pkrempa at redhat.com
Wed Jun 8 13:06:18 UTC 2016


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 at redhat.com>
> ---
>  src/qemu/qemu_monitor_json.c | 183 +++++++++++++++++++++++++------------------
>  src/qemu/qemu_monitor_json.h |   4 +
>  2 files changed, 109 insertions(+), 78 deletions(-)

ACK




More information about the libvir-list mailing list