diff --git a/vl.c b/vl.c index 833113852f1c5e43dc1f536c2f15e7145f34f283..65cc0209113440df1a9d6ec6f721236443d637d7 100644 --- a/vl.c +++ b/vl.c @@ -3139,6 +3139,8 @@ static void do_vm_stop(int reason) vm_state_notify(0, reason); monitor_protocol_event(QEVENT_STOP, NULL); } + + monitor_protocol_event(QEVENT_RESET, NULL); } void qemu_register_reset(QEMUResetHandler *func, void *opaque) @@ -4096,7 +4098,6 @@ static void main_loop(void) break; } if (qemu_reset_requested()) { - monitor_protocol_event(QEVENT_RESET, NULL); pause_all_vcpus(); qemu_system_reset(); resume_all_vcpus();