Add sysrq to key names known by "sendkey".
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 4 Jun 2008 10:14:16 +0000 (10:14 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 4 Jun 2008 10:14:16 +0000 (10:14 +0000)
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.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4658 c046a42c-6fe2-441c-8c8c-71466251a162

monitor.c

index 91ff29d..e6abcdd 100644 (file)
--- 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" },