Skip to contentSkip to conversation

add sysrq to keycode table in monitor.c

PATCH In review Ryan Harper 2 participants 2 messages May 28, 2008 – Jun 3, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add sysrq to keycode table in monitor.c

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.

Signature · 13 lines
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
[email protected]


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

Signed-off-by: Ryan Harper <[email protected]>
---
monitor.c +1 -0
index 5a9a7fa..b05a766 100644
@@ -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" },
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Ryan Harper

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.