]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add architecture-specific CPU info handling
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Wed, 4 Apr 2018 14:45:05 +0000 (16:45 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 17 Apr 2018 16:45:26 +0000 (12:45 -0400)
commit87ce22247d7d4687ec461dd8ac25cde8b28b0f65
treeef77b6d080f7e1416f365168ea33695868f1715f
parent37bd4571c716c82c3b0df5c65ce8060941c45c15
qemu: add architecture-specific CPU info handling

Extract architecture specific data from query-cpus[-fast] if
available. A new function qemuMonitorJSONExtractCPUArchInfo()
can then call architecture-specific extraction handlers.

Initially, there's a handler for s390 cpu info to
set the halted property depending on the s390 cpu state
returned by QEMU. With this it's still possible to report
the halted condition even when using query-cpus-fast.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor_json.c