]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Map running reason to resume event detail
authorJiri Denemark <jdenemar@redhat.com>
Tue, 11 Sep 2018 13:13:08 +0000 (15:13 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 25 Sep 2018 18:42:25 +0000 (20:42 +0200)
commit8ae9b49f5a4a02f57a1dfa20d4fe04c3d40a4665
tree0d324d5239e6a4cbbe407b94c5924c85c15ef26a
parent5dab984ed0cd0332e59d719420ab2f9d009b952f
qemu: Map running reason to resume event detail

Thanks to the previous commit the RESUME event handler knows what reason
should be used when changing the domain state to VIR_DOMAIN_RUNNING, but
the emitted VIR_DOMAIN_EVENT_RESUMED event still uses a generic
VIR_DOMAIN_EVENT_RESUMED_UNPAUSED detail. Luckily, the event detail can
be easily deduced from the running reason, which saves us from having to
pass one more value to the handler.

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