Commit c0253115 authored by Petr Tesarik's avatar Petr Tesarik Committed by Linus Torvalds

kexec: allow kdump with crash_kexec_post_notifiers

If a crash kernel is loaded, do not crash the running domain.  This is
needed if the kernel is loaded with crash_kexec_post_notifiers, because
panic notifiers are run before __crash_kexec() in that case, and this
Xen hook prevents its being called later.

[ build fix: unconditionally include kexec.h]
Link: default avatarPetr Tesarik <>
Cc: Juergen Gross <>
Cc: Josh Triplett <>
Cc: Ingo Molnar <>
Cc: Thomas Gleixner <>
Cc: Eric Biederman <>
Cc: "H. Peter Anvin" <>
Cc: Boris Ostrovsky <>
Cc: "Paul E. McKenney" <>
Cc: Dave Young <>
Cc: David Vrabel <>
Cc: Vivek Goyal <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 21db79e8
......@@ -34,9 +34,7 @@
#include <linux/edd.h>
#include <linux/frame.h>
#include <linux/kexec.h>
#include <xen/xen.h>
#include <xen/events.h>
......@@ -1334,7 +1332,8 @@ static void xen_crash_shutdown(struct pt_regs *regs)
static int
xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr)
if (!kexec_crash_loaded())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment