From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hp1AJ-0005fU-7v for qemu-devel@nongnu.org; Fri, 18 May 2007 08:02:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hp1AH-0005dC-9U for qemu-devel@nongnu.org; Fri, 18 May 2007 08:02:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hp1AF-0005cY-Mo for qemu-devel@nongnu.org; Fri, 18 May 2007 08:02:32 -0400 Received: from mail.windriver.com ([147.11.1.11] helo=mail.wrs.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hp122-0004Hx-9e for qemu-devel@nongnu.org; Fri, 18 May 2007 07:54:02 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id l4IBreNn010364 for ; Fri, 18 May 2007 04:53:40 -0700 (PDT) Message-ID: <464D93CF.6010102@windriver.com> Date: Fri, 18 May 2007 06:53:51 -0500 From: Jason Wessel MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040208020804000105010001" Subject: [Qemu-devel] [PATCH] Fix sysrq support from the monitor mux Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------040208020804000105010001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. --------------040208020804000105010001 Content-Type: text/x-patch; name="sys_rq_fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sys_rq_fix.patch" --- 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 */ --------------040208020804000105010001--