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-changelog

[Xen-changelog] [xen-unstable] [XEN] Never crash machine on int3 traps.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEN] Never crash machine on int3 traps.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 04 Oct 2006 10:01:04 +0000
Delivery-date: Wed, 04 Oct 2006 03:01:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 74855cdc4a1d9d745b6a5ec5eb033221d53cb593
# Parent  38f9bd7a4ce6e164bd720292fb0a75a75cad9d19
[XEN] Never crash machine on int3 traps.
Do not enter debugger on dom0 shutdown unless dom0 crashed.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/common/shutdown.c          |    3 +--
 xen/include/asm-x86/debugger.h |    3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -r 38f9bd7a4ce6 -r 74855cdc4a1d xen/common/shutdown.c
--- a/xen/common/shutdown.c     Tue Oct 03 11:39:22 2006 +0100
+++ b/xen/common/shutdown.c     Wed Oct 04 09:10:17 2006 +0100
@@ -30,8 +30,6 @@ static void maybe_reboot(void)
 
 void dom0_shutdown(u8 reason)
 {
-    debugger_trap_immediate();
-
     switch ( reason )
     {
     case SHUTDOWN_poweroff:
@@ -43,6 +41,7 @@ void dom0_shutdown(u8 reason)
 
     case SHUTDOWN_crash:
     {
+        debugger_trap_immediate();
         printk("Domain 0 crashed: ");
         maybe_reboot();
         break; /* not reached */
diff -r 38f9bd7a4ce6 -r 74855cdc4a1d xen/include/asm-x86/debugger.h
--- a/xen/include/asm-x86/debugger.h    Tue Oct 03 11:39:22 2006 +0100
+++ b/xen/include/asm-x86/debugger.h    Wed Oct 04 09:10:17 2006 +0100
@@ -46,7 +46,8 @@ static inline int debugger_trap_fatal(
 static inline int debugger_trap_fatal(
     unsigned int vector, struct cpu_user_regs *regs)
 {
-    return (__trap_to_gdb(regs, vector) == 0);
+    int rc = __trap_to_gdb(regs, vector);
+    return ((rc == 0) || (vector == TRAP_int3));
 }
 
 /* Int3 is a trivial way to gather cpu_user_regs context. */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEN] Never crash machine on int3 traps., Xen patchbot-unstable <=