]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix event generated for qemuDomainRevertToSnapshot (pause->run)
authorJohn Ferlan <jferlan@redhat.com>
Tue, 15 Dec 2015 18:39:44 +0000 (13:39 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 17 Dec 2015 13:04:02 +0000 (08:04 -0500)
commit5efcfb96954d85c80a512889fead41ff626a711d
tree99ba0c76e343914ede1eff3d2b62fcfa9182fb6f
parent80ca86e54d101508ba6f3c5affc420d946810331
qemu: Fix event generated for qemuDomainRevertToSnapshot (pause->run)

A closer review of the code shows that for the transition from paused to
running which was supposed to emit the VIR_DOMAIN_EVENT_RESUMED - no event
would be generated. Rather the event is generated when going from running
to running.

Following the 'was_running' boolean shows it is set when the domain obj
is active and the domain obj state is VIR_DOMAIN_RUNNING. So rather than
using was_running to generate the RESUMED event, use !was_running
src/qemu/qemu_driver.c