qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] add sysrq to keycode table in monitor.c


From: Ryan Harper
Subject: [Qemu-devel] [PATCH] add sysrq to keycode table in monitor.c
Date: Wed, 28 May 2008 14:46:14 -0500
User-agent: Mutt/1.5.6+20040907i

Adding sysrq keycode to the table enabling running sysrq debugging in
the guest via the monitor sendkey command, like:

(qemu) sendkey alt-sysrq-t

Tested on x86-64 target and Linux guest.

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
address@hidden


diffstat output:
 monitor.c |    1 +
 1 files changed, 1 insertion(+)

Signed-off-by: Ryan Harper <address@hidden>
---
diff --git a/monitor.c b/monitor.c
index 5a9a7fa..b05a766 100644
--- a/monitor.c
+++ b/monitor.c
@@ -867,6 +867,7 @@ static const KeyDef key_defs[] = {
     { 0x4e, "kp_add" },
     { 0x9c, "kp_enter" },
     { 0x53, "kp_decimal" },
+    { 0x54, "sysrq" },
 
     { 0x52, "kp_0" },
     { 0x4f, "kp_1" },




reply via email to

[Prev in Thread] Current Thread [Next in Thread]