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] [IA64] panic_domain should only crash the domain

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [IA64] panic_domain should only crash the domain
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Apr 2006 10:32:40 +0000
Delivery-date: Thu, 27 Apr 2006 03:39:45 -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 awilliam@xxxxxxxxxxx
# Node ID 99e1c7f276ea1a6d0fd50aded815a504a63a31d7
# Parent  633e8bbabf760e1b89d463959705a8beed56d7cc
[IA64] panic_domain should only crash the domain

Don't crash Xen in case of panic_domain.  Simply crash the domain.

Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>

diff -r 633e8bbabf76 -r 99e1c7f276ea xen/arch/ia64/xen/xenmisc.c
--- a/xen/arch/ia64/xen/xenmisc.c       Thu Apr 13 14:42:43 2006 -0600
+++ b/xen/arch/ia64/xen/xenmisc.c       Thu Apr 13 14:44:39 2006 -0600
@@ -346,11 +346,7 @@ void panic_domain(struct pt_regs *regs, 
        va_list args;
        char buf[128];
        struct vcpu *v = current;
-//     static volatile int test = 1;   // so can continue easily in debug
-//     extern spinlock_t console_lock;
-//     unsigned long flags;
     
-loop:
        printf("$$$$$ PANIC in domain %d (k6=0x%lx): ",
                v->domain->domain_id, 
                __get_cpu_var(cpu_kr)._kr[IA64_KR_CURRENT]);
@@ -364,16 +360,7 @@ loop:
        } else {
                debugger_trap_immediate();
        }
-       domain_pause_by_systemcontroller(current->domain);
-       v->domain->shutdown_code = SHUTDOWN_crash;
-       set_bit(_DOMF_shutdown, &v->domain->domain_flags);
-       if (v->domain->domain_id == 0) {
-               int i = 1000000000L;
-               // if domain0 crashes, just periodically print out panic
-               // message to make post-mortem easier
-               while(i--);
-               goto loop;
-       }
+       domain_crash_synchronous ();
 }
 
 /* FIXME: for the forseeable future, all cpu's that enable VTi have split

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] panic_domain should only crash the domain, Xen patchbot -unstable <=