From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751220AbcGMM1w (ORCPT ); Wed, 13 Jul 2016 08:27:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:59106 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbcGMM1n (ORCPT ); Wed, 13 Jul 2016 08:27:43 -0400 Date: Wed, 13 Jul 2016 14:27:24 +0200 From: Petr Tesarik To: Juergen Gross , Josh Triplett , Ingo Molnar , Thomas Gleixner , Eric Biederman , "H. Peter Anvin" , Boris Ostrovsky , "Paul E. McKenney" , Dave Young , Andrew Morton , David Vrabel Cc: "moderated list:XEN HYPERVISOR INTERFACE" , "maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" , "open list:KEXEC" , open list Subject: Re: [PATCH 0/2] Allow crash dumps with crash_kexec_post_notifiers Message-ID: <20160713142724.18f2f638@hananiah.suse.cz> In-Reply-To: <20160713121950.14969.78606.stgit@hananiah.suse.cz> References: <20160713121950.14969.78606.stgit@hananiah.suse.cz> Organization: SUSE Linux, s.r.o. X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.30; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Jul 2016 14:19:50 +0200 Petr Tesarik wrote: > Hello all, > > this patch series makes it possible to save a kernel crash dump when the > kernel command line includes "crash_kexec_post_notifiers". Oh ... I forgot to add: This only applies to running Linux under Xen. If you run on bare metal, you can always save the dump already, as you certainly know. Petr T > There might > be other approaches, but mine has the advantage that no new sysctl is > required, and the behaviour is the same whether panic notifiers are run > or not: If you load a crash kernel with kexec, it will be used, otherwise > the hypervisor facility is used (using a hypercall). > > Feedback welcome! > > Petr T > > --- > > Petr Tesarik (2): > Add a kexec_crash_loaded() function > Allow kdump with crash_kexec_post_notifiers > > > arch/x86/xen/enlighten.c | 3 ++- > include/linux/kexec.h | 2 ++ > kernel/kexec_core.c | 5 +++++ > kernel/ksysfs.c | 2 +- > 4 files changed, 10 insertions(+), 2 deletions(-) > > -- > Signature > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec