]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Add vcpu state information to monitor data
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 Sep 2016 15:52:38 +0000 (17:52 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 14 Sep 2016 10:55:33 +0000 (12:55 +0200)
commit2a0e68be9185eecb9207ebdfdc4f8f0933f38bb3
treec9e475eb5e1039227b434ba4e19a5a9a8f881387
parent66da0356cd62398b1e06de317458e8883cb32db6
qemu: monitor: Add vcpu state information to monitor data

Return whether a vcpu entry is hotpluggable or online so that upper
layers don't have to infer the information from other data.

Advantage is that this code can be tested by unit tests.
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-basic.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-hotplug-1.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-hotplug-2.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-hotplug-4.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-no-threads.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-basic-pluggable.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-full.data
tests/qemumonitorjsontest.c