mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
kexec crash image when dom0 crashes
Signed-off-by: David Vrabel <david.vrabel@citrix.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> Tested-by: Daniel Kiper <daniel.kiper@oracle.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Don Slutz <dslutz@verizon.com> Tested-by: Don Slutz <dslutz@verizon.com> Acked-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
5a82d5cf35
commit
d5cb49fb72
2 files changed
+5
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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 */
|
||||
}
|
||||
|
||||