[PATCH 6/8] xen: kexec crash image when dom0 crashes

David Vrabel david.vrabel at citrix.com
Thu Feb 21 12:48:12 EST 2013


From: David Vrabel <david.vrabel at citrix.com>

Signed-off-by: David Vrabel <david.vrabel at citrix.com>
---
 xen/common/shutdown.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/xen/common/shutdown.c b/xen/common/shutdown.c
index b18ef5d..12aa034 100644
--- a/xen/common/shutdown.c
+++ b/xen/common/shutdown.c
@@ -46,6 +46,9 @@ void dom0_shutdown(u8 reason)
     {
         debugger_trap_immediate();
         printk("Domain 0 crashed: ");
+#ifdef CONFIG_KEXEC
+        kexec_crash();
+#endif
         maybe_reboot();
         break; /* not reached */
     }
-- 
1.7.2.5




More information about the kexec mailing list