]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix issues with maxMemory in qemuDomainSetMemoryFlags()
authorLuyao Huang <lhuang@redhat.com>
Tue, 24 Mar 2015 14:12:37 +0000 (22:12 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Apr 2015 07:26:25 +0000 (09:26 +0200)
commitd174394105cf00ed266bf729ddf461c21637c736
treeb87d35c19e023c79282f763ccb63e8a2f7962538
parentd0baac09e69fbe074a556c44a5a3daef69379b28
qemu: Fix issues with maxMemory in qemuDomainSetMemoryFlags()

qemuDomainSetMemoryFlags() would allow to set the initial memory greater
than the <maxMemory> field. While the configuration would not work as
memory hotplug requires NUMA to be enabled and the
qemuDomainSetMemoryFlags() API does not work on NUMA guests this just
fixes a corner case.

The fix is still worth though as it allows to induce an invalid
configuration and make the VM vanish on libvirt restart.

Additionally this tweaks error message to be more accurate.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_driver.c