]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
qmp: don't emit the RESET event on wakeup from S3
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 8 Aug 2012 20:29:17 +0000 (17:29 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 13 Aug 2012 19:10:18 +0000 (16:10 -0300)
commit1405819637f53ed8021067eb3ea52e32bef2870b
tree6df885c8b79fe3aa75fdb26b4f6e9751e7029485
parent08b76b9fc3f0c25f062216955411aefaefabff89
qmp: don't emit the RESET event on wakeup from S3

QEMU is basically using reset logic when waking up from S3. This
causes the QMP RESET event to be emitted, which is wrong. Also,
the runstate checks done in reset are not necessary for S3 wakeup.

Fix this by untangling wakeup from reset logic and passing
VMRESET_SILENT to qemu_system_reset() to avoid emitting the RESET
event.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
vl.c