]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Don't ignore resume events
authorJiri Denemark <jdenemar@redhat.com>
Wed, 7 Nov 2018 13:34:52 +0000 (14:34 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 8 Nov 2018 08:08:58 +0000 (09:08 +0100)
commite47949357ba268e7e8c3adea7c262b84fa002302
tree00a55d777098da4c3f0756dfbfc6ba4b4b74a773
parent4608af30f9f9a4089b530d85d9b11c2f88424a09
qemu: Don't ignore resume events

Since commit v4.7.0-302-ge6d77a75c4 processing RESUME event is mandatory
for updating domain state. But the event handler explicitly ignored this
event in some cases. Thus the state would be wrong after a fake reboot
or when a domain was rebooted after it crashed.

BTW, the code to ignore RESUME event after SHUTDOWN didn't make sense
even before making RESUME event mandatory. Most likely it was there as a
result of careless copy&paste from qemuProcessHandleStop.

The corresponding debug message was clarified since the original state
does not have to be "paused" only and while we have a "resumed" event,
the state is called "running".

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

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_process.c