ia64/xen-unstable

changeset 12902:4ae4bdee00e6

[XEN] Only allow each domain to putput crash debug info once.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Mon Dec 11 16:32:25 2006 +0000 (2006-12-11)
parents 37141c3a3d39
children aabceba1dbc5
files xen/common/domain.c
line diff
     1.1 --- a/xen/common/domain.c	Mon Dec 11 15:06:53 2006 +0000
     1.2 +++ b/xen/common/domain.c	Mon Dec 11 16:32:25 2006 +0000
     1.3 @@ -238,7 +238,11 @@ void domain_kill(struct domain *d)
     1.4  
     1.5  void __domain_crash(struct domain *d)
     1.6  {
     1.7 -    if ( d == current->domain )
     1.8 +    if ( test_bit(_DOMF_shutdown, &d->domain_flags) )
     1.9 +    {
    1.10 +        /* Print nothing: the domain is already shutting down. */
    1.11 +    }
    1.12 +    else if ( d == current->domain )
    1.13      {
    1.14          printk("Domain %d (vcpu#%d) crashed on cpu#%d:\n",
    1.15                 d->domain_id, current->vcpu_id, smp_processor_id());