From: Luiz Capitulino Date: Thu, 25 Feb 2010 15:06:59 +0000 (-0300) Subject: QMP: Move STOP event into do_vm_stop() X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~8522 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b8f8fff78185cb260d1ca3c30352c0bf5601d36;p=sdk%2Femulator%2Fqemu.git QMP: Move STOP event into do_vm_stop() I've introduced the STOP event in the main loop, this is wrong as it will be only emitted if the io thread is enabled. This fixes that by moving the STOP event to do_vm_stop(). Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- diff --git a/vl.c b/vl.c index 10d8e34..8331138 100644 --- a/vl.c +++ b/vl.c @@ -3137,6 +3137,7 @@ static void do_vm_stop(int reason) vm_running = 0; pause_all_vcpus(); vm_state_notify(0, reason); + monitor_protocol_event(QEVENT_STOP, NULL); } } @@ -4105,7 +4106,6 @@ static void main_loop(void) qemu_irq_raise(qemu_system_powerdown); } if ((r = qemu_vmstop_requested())) { - monitor_protocol_event(QEVENT_STOP, NULL); vm_stop(r); } }