qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wessel <jason.wessel@windriver.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH]  Fix sysrq support from the monitor mux
Date: Fri, 18 May 2007 06:53:51 -0500	[thread overview]
Message-ID: <464D93CF.6010102@windriver.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

The monitor mux code calls uses the wrong opaque structure and crashes 
qemu.   This patch fixes it such that the sysrq support works correctly.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>

Jason.



[-- Attachment #2: sys_rq_fix.patch --]
[-- Type: text/x-patch, Size: 550 bytes --]

---
 vl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: qemu/vl.c
===================================================================
--- qemu.orig/vl.c
+++ qemu/vl.c
@@ -1371,7 +1371,7 @@ static int mux_proc_byte(CharDriverState
             break;
         case 'b':
             if (chr->chr_event)
-                chr->chr_event(chr->opaque, CHR_EVENT_BREAK);
+                chr->chr_event(chr->handler_opaque, CHR_EVENT_BREAK);
             break;
         case 'c':
             /* Switch to the next registered device */

                 reply	other threads:[~2007-05-18 12:02 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=464D93CF.6010102@windriver.com \
    --to=jason.wessel@windriver.com \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).