aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/shutdown.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-10-04 09:10:17 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-10-04 09:10:17 +0100
commitfc7c643b21cceb90954ee492354b422b700bf569 (patch)
tree355f4e99a77876e6b2a9a629a44e060af6fa4844 /xen/common/shutdown.c
parent86f22394f516507f855cb177458c5be264029def (diff)
downloadxen-fc7c643b21cceb90954ee492354b422b700bf569.tar.gz
xen-fc7c643b21cceb90954ee492354b422b700bf569.tar.bz2
xen-fc7c643b21cceb90954ee492354b422b700bf569.zip
[XEN] Never crash machine on int3 traps.
Do not enter debugger on dom0 shutdown unless dom0 crashed. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/common/shutdown.c')
-rw-r--r--xen/common/shutdown.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/common/shutdown.c b/xen/common/shutdown.c
index 1baea16205..a994e14bfc 100644
--- a/xen/common/shutdown.c
+++ b/xen/common/shutdown.c
@@ -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 */