* [PATCH] - Hotkey to break hypervisor out of tight loop
@ 2006-05-17 13:54 Robert S. Phillips
0 siblings, 0 replies; only message in thread
From: Robert S. Phillips @ 2006-05-17 13:54 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 192 bytes --]
This patch provides a simple way to break out of a tight loop and bug:
from the hypervisor monitor press ctrl-A, ctrl-A, ctrl-Z
Signed-off-by: Robert S. Phillips (rphillips@virtualiron.com)
[-- Attachment #2: patch-9812-aaz --]
[-- Type: text/plain, Size: 972 bytes --]
# HG changeset patch
# User rphillips@rphillips
# Node ID ac69f504f7c1fd7415927f2c9ca460de70f71b53
# Parent f5480845f7080594723fe107e04fb4b9e4223b74
This patch provides a simple way to break out of a tight loop and bug:
from the hypervisor monitor press ctrl-A, ctrl-A, ctrl-Z
Signed-off-by: Robert S. Phillips (rphillips@virtualiron.com)
diff -r f5480845f708 -r ac69f504f7c1 xen/drivers/char/console.c
--- a/xen/drivers/char/console.c Tue May 16 11:47:06 2006 -0400
+++ b/xen/drivers/char/console.c Tue May 16 11:50:02 2006 -0400
@@ -310,6 +310,17 @@
return;
}
}
+#ifndef NDEBUG
+ else if ( (SWITCH_CODE != 0) && (c == ('z' - 'a' + 1)) )
+ {
+ /* To break out of tight hypervisor loops
+ * BUG on CTRL-<switch char> CTRL-<switch char> CTRL-z */
+ if ( switch_code_count == 2 )
+ BUG();
+ else
+ switch_code_count = 0;
+ }
+#endif
else
{
switch_code_count = 0;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-17 13:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-17 13:54 [PATCH] - Hotkey to break hypervisor out of tight loop Robert S. Phillips
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.