]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't duplicate suspend events and state changes
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 8 Feb 2019 07:36:56 +0000 (10:36 +0300)
committerNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Thu, 4 Apr 2019 07:36:04 +0000 (10:36 +0300)
commite3389d830c84f9e25c8054dd08617ff701a1225a
tree48c5e8e27398dc428a214f3de687d9cf528c5ae6
parentab2eaa1492f1a3142b7c1b6cbb113f48fc76b0b7
qemu: Don't duplicate suspend events and state changes

Since the STOP event handler can use the pausedReason as sent to
qemuProcessStopCPUs, we no longer need to send duplicate suspended
lifecycle events because we know what caused the stop along with extra
details. This processing allows us to also remove the duplicated state
change from qemuProcessStopCPUs.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration.h
src/qemu/qemu_process.c