Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1442390 > unrolled thread
| Started by | Petr Tesarik <ptesarik@suse.com> |
|---|---|
| First post | 2016-07-13 14:30 +0200 |
| Last post | 2016-07-13 15:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[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
| From | Petr Tesarik <ptesarik@suse.com> |
|---|---|
| Date | 2016-07-13 14:30 +0200 |
| Subject | [PATCH 2/2] Allow kdump with crash_kexec_post_notifiers |
| Message-ID | <rUrsB-30I-1@gated-at.bofh.it> |
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;
}
[toc] | [next] | [standalone]
| From | David Vrabel <david.vrabel@citrix.com> |
|---|---|
| Date | 2016-07-13 15:00 +0200 |
| Subject | Re: [Xen-devel] [PATCH 2/2] Allow kdump with crash_kexec_post_notifiers |
| Message-ID | <rUrVE-3bS-29@gated-at.bofh.it> |
| In reply to | #1442390 |
On 13/07/16 13:20, Petr Tesarik wrote: > 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. Prioritising the in-kernel kexec image over the hypervisor one seems sensible behaviour to me. Reviewed-by: David Vrabel <david.vrabel@citrix.com> David
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web