[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/5] QMP: Move STOP event into do_vm_stop()
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PATCH 2/5] QMP: Move STOP event into do_vm_stop() |
Date: |
Thu, 25 Feb 2010 12:06:59 -0300 |
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 <address@hidden>
---
vl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vl.c b/vl.c
index db7a178..1735dd2 100644
--- a/vl.c
+++ b/vl.c
@@ -3106,6 +3106,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);
}
}
@@ -4073,7 +4074,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);
}
}
--
1.7.0.GIT
- [Qemu-devel] [PATCH v0 0/5]: QMP: some event fixes, Luiz Capitulino, 2010/02/25
- [Qemu-devel] [PATCH 1/5] block: Emit BLOCK_IO_ERROR before vm_stop() call, Luiz Capitulino, 2010/02/25
- [Qemu-devel] [PATCH 2/5] QMP: Move STOP event into do_vm_stop(),
Luiz Capitulino <=
- [Qemu-devel] [PATCH 3/5] QMP: Move RESET event into qemu_system_reset(), Luiz Capitulino, 2010/02/25
- [Qemu-devel] [PATCH 4/5] QMP: Drop DEBUG event, Luiz Capitulino, 2010/02/25
- [Qemu-devel] [PATCH 5/5] QMP: Revamp the qmp-events.txt file, Luiz Capitulino, 2010/02/25
- [Qemu-devel] Re: [PATCH v0 0/5]: QMP: some event fixes, Juan Quintela, 2010/02/25