add sysrq to keycode table in monitor.c
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
@@ -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" },
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.
Reviewed-by Anthony Liguori <[email protected]>