From: "Robert S. Phillips" <rphillips@virtualiron.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] - Hotkey to break hypervisor out of tight loop
Date: Wed, 17 May 2006 09:54:02 -0400 [thread overview]
Message-ID: <446B2AFA.6000408@virtualiron.com> (raw)
[-- 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
reply other threads:[~2006-05-17 13:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=446B2AFA.6000408@virtualiron.com \
--to=rphillips@virtualiron.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.