File 19259-ignore-shutdown-deferrals.patch of Package xen
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1236002961 0
# Node ID c62b453f27d5bf843890d47ec88e39be78efc0b1
# Parent 58edfadb2d87989b464c6153b6f49f9d5f75f445
When a domain crashes, ignore shutdown deferrals.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Index: xen-3.3.1-testing/xen/common/domain.c
===================================================================
--- xen-3.3.1-testing.orig/xen/common/domain.c
+++ xen-3.3.1-testing/xen/common/domain.c
@@ -467,7 +467,9 @@ void domain_shutdown(struct domain *d, u
for_each_vcpu ( d, v )
{
- if ( v->defer_shutdown )
+ if ( reason == SHUTDOWN_crash )
+ v->defer_shutdown = 0;
+ else if ( v->defer_shutdown )
continue;
vcpu_pause_nosync(v);
v->paused_for_shutdown = 1;