]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: forbid suspend if already pmsuspended
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Aug 2012 13:26:20 +0000 (15:26 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Aug 2012 15:48:44 +0000 (17:48 +0200)
commit385ee0e982080d03ce0d11eab32396c0d7057961
tree3b23b58e663b8dfcf2748f0c2b17041509c20d65
parentbf51299d57cd948af3eec485c32cab7d93ba5263
qemu: forbid suspend if already pmsuspended

If a domain is pmsuspended then virsh suspend will succeed. Beside
obvious flaw, virsh resume will report success and change domain
state to running which is another mistake. Therefore we must forbid
any attempts for suspend and resume when pmsuspended.
src/libvirt.c
src/qemu/qemu_driver.c