]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Make Set*Mem commands hotplug only
authorCole Robinson <crobinso@redhat.com>
Tue, 9 Feb 2010 21:25:06 +0000 (16:25 -0500)
committerCole Robinson <crobinso@redhat.com>
Tue, 16 Feb 2010 16:10:40 +0000 (11:10 -0500)
commit09a33fd8a9cc85e5e1064168472bff7aecff15fb
tree72d3f30d6ef1ee9a3950abc1d02d4842ee57a924
parent535db41be8c18c369f43cddebd5071cc8d155d58
qemu: Make Set*Mem commands hotplug only

SetMem and SetMaxMem are hotplug only APIs, any persistent config
changes are supposed to go via XML definition. The original implementation
of these calls were incorrect and had the nasty side effect of making
a psuedo persistent change that would be lost after libvirtd restart
(I didn't know any better).

Fix these APIs to rightly reject non running domains.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_driver.c