]> xenbits.xensource.com Git - libvirt.git/commit
qemu: setvcpus: Properly coldplug vcpus when hotpluggable vcpus are present
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jan 2017 12:50:26 +0000 (13:50 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Jan 2017 09:47:06 +0000 (10:47 +0100)
commita946ea1a334f601bfa0ad4402113544546948de1
tree007dbdd400cf455266f86d1a3fd9655730bd7660
parent24d4a0a1fb15d39fd3efd0dd37ca39059d0c1a17
qemu: setvcpus: Properly coldplug vcpus when hotpluggable vcpus are present

When coldplugging vcpus to a VM that already has a few hotpluggable
vcpus the code might generate invalid configuration as
non-hotpluggable cpus need to be clustered starting from vcpu 0.

This fix forces the added vcpus to be hotpluggable in such case.

Fixes a corner case described in:
https://bugzilla.redhat.com/show_bug.cgi?id=1370357
src/qemu/qemu_driver.c