]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Fix 'kill -3' to send SysRq-P to the guest
authorPekka Enberg <penberg@kernel.org>
Sat, 9 Apr 2011 13:01:56 +0000 (16:01 +0300)
committerPekka Enberg <penberg@kernel.org>
Sat, 9 Apr 2011 13:01:56 +0000 (16:01 +0300)
Commit ff56002 ("kvm tools: Use the Gitish freamwork to run the virtual
machine") broken SysRq-P support in the hypervisor. Fix that up.

Cc: Asias He <asias.hejun@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Prasad Joshi <prasadjoshi124@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/kvm-run.c

index 5670b1d8716c056257c1f48b6db2fbe2094b3470..189d6294bda9ec6d00de458694fddcdbc208f5f1 100644 (file)
@@ -42,14 +42,7 @@ static void handle_sigint(int sig)
 
 static void handle_sigquit(int sig)
 {
-       kvm_cpu__show_registers(current_cpu);
-       kvm_cpu__show_code(current_cpu);
-       kvm_cpu__show_page_tables(current_cpu);
-
-       kvm_cpu__delete(current_cpu);
-       kvm__delete(kvm);
-
-       exit(1);
+       serial8250__inject_sysrq(kvm);
 }
 
 static void handle_sigalrm(int sig)