Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1442390
| From | Petr Tesarik <ptesarik@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] Allow kdump with crash_kexec_post_notifiers |
| Date | 2016-07-13 14:30 +0200 |
| Message-ID | <rUrsB-30I-1@gated-at.bofh.it> (permalink) |
| References | <rUrsB-30I-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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.
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
---
arch/x86/xen/enlighten.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 760789a..6e3e7c6 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1325,7 +1325,8 @@ static void xen_crash_shutdown(struct pt_regs *regs)
static int
xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr)
{
- xen_reboot(SHUTDOWN_crash);
+ if (!kexec_crash_loaded())
+ xen_reboot(SHUTDOWN_crash);
return NOTIFY_DONE;
}
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 2/2] Allow kdump with crash_kexec_post_notifiers Petr Tesarik <ptesarik@suse.com> - 2016-07-13 14:30 +0200 Re: [Xen-devel] [PATCH 2/2] Allow kdump with crash_kexec_post_notifiers David Vrabel <david.vrabel@citrix.com> - 2016-07-13 15:00 +0200
csiph-web