mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[XEN] Only allow each domain to putput crash debug info once.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
88008890d4
commit
ad4a42ea52
1 file changed
+5
-1
+5
-1
@@ -238,7 +238,11 @@ void domain_kill(struct domain *d)
|
||||
|
||||
void __domain_crash(struct domain *d)
|
||||
{
|
||||
if ( d == current->domain )
|
||||
if ( test_bit(_DOMF_shutdown, &d->domain_flags) )
|
||||
{
|
||||
/* Print nothing: the domain is already shutting down. */
|
||||
}
|
||||
else if ( d == current->domain )
|
||||
{
|
||||
printk("Domain %d (vcpu#%d) crashed on cpu#%d:\n",
|
||||
d->domain_id, current->vcpu_id, smp_processor_id());
|
||||
|
||||