From: David Vrabel Date: Tue, 12 Nov 2013 10:46:06 +0000 (+0100) Subject: kexec crash image when dom0 crashes X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5992 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d5cb49fb72d8a62433b350ccb18b0f86e11b78d1;p=xen.git kexec crash image when dom0 crashes Signed-off-by: David Vrabel Reviewed-by: Daniel Kiper Tested-by: Daniel Kiper Reviewed-by: Andrew Cooper Reviewed-by: Don Slutz Tested-by: Don Slutz Acked-by: Keir Fraser --- diff --git a/xen/common/kexec.c b/xen/common/kexec.c index c5450bae2f..9999babce6 100644 --- a/xen/common/kexec.c +++ b/xen/common/kexec.c @@ -305,6 +305,8 @@ void kexec_crash(void) if ( !test_bit(KEXEC_IMAGE_CRASH_BASE + pos, &kexec_flags) ) return; + printk("Executing crash image\n"); + kexecing = TRUE; kexec_common_shutdown(); diff --git a/xen/common/shutdown.c b/xen/common/shutdown.c index 20f04b0787..9bccd34d8a 100644 --- a/xen/common/shutdown.c +++ b/xen/common/shutdown.c @@ -47,6 +47,9 @@ void dom0_shutdown(u8 reason) { debugger_trap_immediate(); printk("Domain 0 crashed: "); +#ifdef CONFIG_KEXEC + kexec_crash(); +#endif maybe_reboot(); break; /* not reached */ }