]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Enforce vCPU hotplug granularity constraints
authorAndrea Bolognani <abologna@redhat.com>
Thu, 14 Dec 2017 14:54:59 +0000 (15:54 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 2 Jan 2018 13:22:06 +0000 (14:22 +0100)
commita38aa340fe6099ebb4943792830de75b0efc09a0
treea9ffb93bb06b1286ad0b52f8a7fc54269f9eba7d
parent54acfac4a538365c200c80a119fd1fe87e33109c
qemu: Enforce vCPU hotplug granularity constraints

QEMU 2.7 and newer don't allow guests to start unless the initial
vCPUs count is a multiple of the vCPU hotplug granularity, so
validate it and report an error if needed.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1283700

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/cpu-hotplug-granularity.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c