aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2011-04-08 15:21:36 +0300
committerWill Deacon <will.deacon@arm.com>2015-06-01 16:39:41 +0100
commita428f72ec339b72f6656e1d13773e50b2a546b82 (patch)
treef8cad1e2a3a66601132fa7cf0f7f6e72be05e7c2 /main.c
parent8a628d5a54dab0aef39439596a4a5cd1740f797d (diff)
downloadkvmtool-a428f72ec339b72f6656e1d13773e50b2a546b82.tar.gz
kvm tools: Send SysRq-P to guest kernel on SIGQUIT
This patch makes SIGQUIT to the host hypervisor send 'SysRq-P' to the guest kernel via 8250 serial console to make debugging stuck guests easier. Cc: Asias He <asias.hejun@gmail.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 6aa2534c..d8f0c090 100644
--- a/main.c
+++ b/main.c
@@ -38,6 +38,7 @@ static void handle_sigint(int sig)
static void handle_sigquit(int sig)
{
+ serial8250__inject_sysrq(kvm);
kvm__show_registers(kvm);
kvm__show_code(kvm);
kvm__show_page_tables(kvm);