]> xenbits.xensource.com Git - libvirt.git/commit
qemu: monitor: Extract halted state to a bitmap indexed by cpu id
authorPeter Krempa <pkrempa@redhat.com>
Mon, 21 Nov 2016 13:54:35 +0000 (14:54 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 21 Nov 2016 16:19:48 +0000 (17:19 +0100)
commit5d885f4ff35bb451e3864cd6d1b96cb977d774a0
tree9933b69ce3ed818dbfab148e4bbf64e3acdee01e
parent3f71c797689a4a70878bc50b341763dfc34a98ff
qemu: monitor: Extract halted state to a bitmap indexed by cpu id

We don't need to call qemuMonitorGetCPUInfo which is very inefficient to
get data required to update the vcpu 'halted' state.

Add a monitor helper that will retrieve the halted state and return it
in a bitmap so that it can be indexed easily.
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h