[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/5] QMP: Move RESET event into qemu_system_reset()
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PATCH 3/5] QMP: Move RESET event into qemu_system_reset() |
Date: |
Thu, 25 Feb 2010 12:07:00 -0300 |
Nothing will change as that function is currently only called by
the main loop code, but it's the right place for the RESET event,
as it's where the reset is actually performed.
Signed-off-by: Luiz Capitulino <address@hidden>
---
vl.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/vl.c b/vl.c
index 1735dd2..2c766c4 100644
--- a/vl.c
+++ b/vl.c
@@ -3140,6 +3140,8 @@ void qemu_system_reset(void)
QTAILQ_FOREACH_SAFE(re, &reset_handlers, entry, nre) {
re->func(re->opaque);
}
+
+ monitor_protocol_event(QEVENT_RESET, NULL);
}
void qemu_system_reset_request(void)
@@ -4064,7 +4066,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();
--
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, 2010/02/25
- [Qemu-devel] [PATCH 3/5] QMP: Move RESET event into qemu_system_reset(),
Luiz Capitulino <=
- [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