]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: fix state after external snapshot of S3 domain
authorEric Blake <eblake@redhat.com>
Wed, 9 Jan 2013 04:54:45 +0000 (21:54 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 24 Jan 2013 23:55:55 +0000 (16:55 -0700)
commit339bdd99a17eb1420cc5cadf27c36a9637d86f10
tree1ec8f167b3464d548db47ae76f2a00ea583bc62b
parent678e891380019b353b1d30551d97ceccfaa3aecc
snapshot: fix state after external snapshot of S3 domain

https://bugzilla.redhat.com/show_bug.cgi?id=876829 complains that
if a guest is put into S3 state (such as via virsh dompmsuspend)
and then an external snapshot is taken, qemu forcefully transitions
the domain to paused, but libvirt doesn't reflect that change
internally.  Thus, a user has to use 'virsh suspend' to get libvirt
back in sync with qemu state, and if the user doesn't know this
trick, then the guest appears hung.

* src/qemu/qemu_driver.c (qemuDomainSnapshotCreateActiveExternal):
Track fact that qemu wakes up a suspended domain on migration.
src/qemu/qemu_driver.c