]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Avoid duplicate resume events and state changes
authorJiri Denemark <jdenemar@redhat.com>
Wed, 12 Sep 2018 12:34:33 +0000 (14:34 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 25 Sep 2018 18:42:25 +0000 (20:42 +0200)
commite6d77a75c4bf0c017d62b717b75e4bb6aa7a456b
treeebb18cf394581632da356b6e336bb77b4c001996
parent8ae9b49f5a4a02f57a1dfa20d4fe04c3d40a4665
qemu: Avoid duplicate resume events and state changes

The only place where VIR_DOMAIN_EVENT_RESUMED should be generated is the
RESUME event handler to make sure we don't generate duplicate events or
state changes. In the worse case the duplicity can revert or cover
changes done by other event handlers.

For example, after QEMU sent RESUME, BLOCK_IO_ERROR, and STOP events
we could happily mark the domain as running and report
VIR_DOMAIN_EVENT_RESUMED to registered clients.

https://bugzilla.redhat.com/show_bug.cgi?id=1612943

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_process.c