diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index 9ba70795896316acb2be3827bdff0570854d4cc9..10f69d1906cdab739e81425854a1979beead64a5 100644 --- a/QMP/qmp-events.txt +++ b/QMP/qmp-events.txt @@ -264,6 +264,19 @@ Example: }} +WAKEUP +------ + +Emitted when the guest has woken up from S3 and is running. + +Data: None. + +Example: + +{ "event": "WATCHDOG", + "timestamp": { "seconds": 1344522075, "microseconds": 745528 } } + + WATCHDOG -------- diff --git a/vl.c b/vl.c index 68fa0a060f740a0d45bd3a209cd697c97f77699a..97ab39ff6eb0dc8c8878eb49f1ab9ede5f55694a 100644 --- a/vl.c +++ b/vl.c @@ -1465,7 +1465,6 @@ void qemu_system_wakeup_request(WakeupReason reason) return; } runstate_set(RUN_STATE_RUNNING); - monitor_protocol_event(QEVENT_WAKEUP, NULL); notifier_list_notify(&wakeup_notifiers, &reason); wakeup_requested = 1; qemu_notify_event(); @@ -1552,6 +1551,7 @@ static bool main_loop_should_exit(void) cpu_synchronize_all_states(); qemu_system_reset(VMRESET_SILENT); resume_all_vcpus(); + monitor_protocol_event(QEVENT_WAKEUP, NULL); } if (qemu_powerdown_requested()) { monitor_protocol_event(QEVENT_POWERDOWN, NULL);