WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] - Hotkey to break hypervisor out of tight loop

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] - Hotkey to break hypervisor out of tight loop
From: "Robert S. Phillips" <rphillips@xxxxxxxxxxxxxxx>
Date: Wed, 17 May 2006 09:54:02 -0400
Delivery-date: Fri, 19 May 2006 04:33:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

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@xxxxxxxxxxxxxxx)
# 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@xxxxxxxxxxxxxxx)

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;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] - Hotkey to break hypervisor out of tight loop, Robert S. Phillips <=