diff options
author | Pekka Enberg <penberg@kernel.org> | 2011-04-08 15:21:36 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-06-01 16:39:41 +0100 |
commit | a428f72ec339b72f6656e1d13773e50b2a546b82 (patch) | |
tree | f8cad1e2a3a66601132fa7cf0f7f6e72be05e7c2 /main.c | |
parent | 8a628d5a54dab0aef39439596a4a5cd1740f797d (diff) | |
download | kvmtool-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |