]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Add support for calling query-hotpluggable-cpus
authorPeter Krempa <pkrempa@redhat.com>
Fri, 8 Jul 2016 11:52:11 +0000 (13:52 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 24 Aug 2016 19:44:47 +0000 (15:44 -0400)
commit1213f0f8a50d9d3b782e3c336e3373c35c652a55
tree6c136a63cf3be643c3b855f9ebd18137e3f0a8f6
parentc91be16b9ff0bfb8f6db400db4ae36c8a47842fc
qemu: monitor: Add support for calling query-hotpluggable-cpus

Add support for retrieving information regarding hotpluggable cpu units
supported by qemu. Data returned by the command carries information
needed to figure out the granularity of hotplug, the necessary cpu type
name and the topology information.

Note that qemu doesn't specify any particular order of the entries thus
it's necessary sort them by socket_id, core_id and thread_id to the
order libvirt expects.
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h