From: Luiz Capitulino <lcapitulino@redhat.com>
To: kvm@vger.kernel.org
Cc: mtosatti@redhat.com
Subject: [PATCH] QMP: Sync with upstream event changes
Date: Wed, 10 Mar 2010 11:59:53 -0300 [thread overview]
Message-ID: <20100310115953.5ffd1690@redhat.com> (raw)
This commit contains the following QMP event changes to sync
kvm_main_loop() with upstream:
- Add the SHUTDOWN event (it's currently missing here)
- Drop the RESET event (it's now emitted in qemu_system_reset())
- Drop the DEBUG event (it has been dropped upstream)
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
qemu-kvm.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/qemu-kvm.c b/qemu-kvm.c
index e417f21..2233a37 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -2038,6 +2038,7 @@ int kvm_main_loop(void)
while (1) {
main_loop_wait(1000);
if (qemu_shutdown_requested()) {
+ monitor_protocol_event(QEVENT_SHUTDOWN, NULL);
if (qemu_no_shutdown()) {
vm_stop(0);
} else
@@ -2046,10 +2047,8 @@ int kvm_main_loop(void)
monitor_protocol_event(QEVENT_POWERDOWN, NULL);
qemu_irq_raise(qemu_system_powerdown);
} else if (qemu_reset_requested()) {
- monitor_protocol_event(QEVENT_RESET, NULL);
qemu_kvm_system_reset();
} else if (kvm_debug_cpu_requested) {
- monitor_protocol_event(QEVENT_DEBUG, NULL);
gdb_set_stop_cpu(kvm_debug_cpu_requested);
vm_stop(EXCP_DEBUG);
kvm_debug_cpu_requested = NULL;
--
1.7.0.2.182.ge007
reply other threads:[~2010-03-10 15:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100310115953.5ffd1690@redhat.com \
--to=lcapitulino@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.