]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: driver: Validate configuration when setting maximum vcpu count
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 Aug 2016 19:30:21 +0000 (15:30 -0400)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 26 Aug 2016 15:30:17 +0000 (11:30 -0400)
commit802fac97ec8c8bd5438ec5bcd4d13edb03b00fc2
treece01db43ed82e5105546cea7793b6b0d887270b6
parentc9cb35c255222be7c972f1e049e297517aa84b42
qemu: driver: Validate configuration when setting maximum vcpu count

Setting vcpu count when cpu topology is specified may result into an
invalid configuration. Since the topology can't be modified, reject the
setting if it doesn't match the requested topology. This will allow
fixing the topology in case it was broken.

Partially fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1370066
src/qemu/qemu_driver.c