]> xenbits.xensource.com Git - libvirt.git/commit
qemu: monitor: Add algorithm for combining query-(hotpluggable-)-cpus data
authorPeter Krempa <pkrempa@redhat.com>
Mon, 1 Aug 2016 11:56:23 +0000 (13:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 24 Aug 2016 19:44:47 +0000 (15:44 -0400)
commit9bbbc88a8f343be6217c49fc4eef033376c0c648
treef728814cd57a7efd944025c0edfad4a22b50b9b4
parent1213f0f8a50d9d3b782e3c336e3373c35c652a55
qemu: monitor: Add algorithm for combining query-(hotpluggable-)-cpus data

For hotplug purposes it's necessary to retrieve data using
query-hotpluggable-cpus while the old query-cpus API report thread IDs
and order of hotplug.

This patch adds code that merges the data using a rather non-trivial
algorithm and fills the data to the qemuMonitorCPUInfo structure for
adding to appropriate place in the domain definition.
src/qemu/qemu_domain.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h