]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Use modern vcpu hotplug approach if possible
authorPeter Krempa <pkrempa@redhat.com>
Tue, 16 Aug 2016 12:44:26 +0000 (14:44 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 24 Aug 2016 19:44:47 +0000 (15:44 -0400)
commit6d4ee77d754df83a0d006c8b503042b437c14df8
tree7ded323ad108f72c9fc139ed5f27546fd06ddac6
parent9eb9106ea51b43102ee51132f69780b2c86ccbca
qemu: Use modern vcpu hotplug approach if possible

To allow unplugging the vcpus, hotplugging of vcpus on platforms which
require to plug multiple logical vcpus at once or plugging them in an
arbitrary order it's necessary to use the new device_add interface for
vcpu hotplug.

This patch adds support for the device_add interface using the old
setvcpus API by implementing an algorithm to select the appropriate
entities to plug in.
src/qemu/qemu_driver.c