From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from blaine.gmane.org ([80.91.229.8] helo=hugh.gmane.org) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1JNWVW-0004I9-26 for kexec@lists.infradead.org; Fri, 08 Feb 2008 16:55:29 +0000 Received: from public by hugh.gmane.org with local (Exim 4.63) (envelope-from ) id 1JNWVD-0008Pm-6b for kexec@lists.infradead.org; Fri, 08 Feb 2008 17:55:03 +0100 Subject: Re: [PATCH], issue EOI to APIC prior to calling crash_kexec in die_nmi path From: Andi Kleen References: <20080206192555.GA24910@hmsendeavour.rdu.redhat.com> <20080206220001.GA15155@elte.hu> <20080206224805.GD11886@redhat.com> <47AA3B16.7000507@zytor.com> <20080206233657.GB12393@elte.hu> <20080207121719.GA29279@hmsreliant.think-freely.org> <20080207122404.GA8195@elte.hu> Date: Fri, 08 Feb 2008 17:54:29 +0100 In-Reply-To: <20080207122404.GA8195@elte.hu> (Ingo Molnar's message of "Thu\, 7 Feb 2008 13\:24\:04 +0100") Message-ID: MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org+dwmw2=infradead.org@lists.infradead.org To: Ingo Molnar Cc: public-kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@hugh.gmane.org, Neil Horman , "Eric W. Biederman" , public-linux-kernel-u79uwXL29TY76Z2rM5mHXA@hugh.gmane.org, public-mingo-H+wXaHxf7aLQT0dZR+AlfA@hugh.gmane.org, Vivek Goyal , public-tglx-hfZtesqFncYOwBW4kG4KsQ@hugh.gmane.org, "H. Peter Anvin" Ingo Molnar writes: > > try a dummy iret, something like: > > asm volatile ("pushf; push $1f; iret; 1: \n"); > > to get the CPU out of its 'nested NMI' state. (totally untested) Just if you do this while running on the NMI stack (and I think you do if you insert it at the same place as Neil's original patch) and another NMI happens for some reason you will be dead because your stack will corrupt. If you really want nested NMIs you would need to fix up the NMI stacks first by pointing them below your own stack. -Andi _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec