Re: [PATCH], issue EOI to APIC prior to calling crash_kexec in die_nmi path

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Neil Horman <nhorman@...>
Cc: Eric W. Biederman <ebiederm@...>, H. Peter Anvin <hpa@...>, Vivek Goyal <vgoyal@...>, <tglx@...>, <mingo@...>, <kexec@...>, <linux-kernel@...>
Date: Thursday, February 7, 2008 - 8:24 am

* Neil Horman <nhorman@tuxdriver.com> wrote:


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)

the idea is to push down an iret frame to the kernel stack that will 
just jump to the next instruction and gets it out of the NMI nesting. 
Note: interrupts will/must still be disabled, despite the iret. (the 
ordering of the pushes might be wrong, we might need more than that for 
a valid iret, etc. etc.)

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH], issue EOI to APIC prior to calling crash_kexec ..., Ingo Molnar, (Thu Feb 7, 8:24 am)
Re: [PATCH], issue EOI to APIC prior to calling crash_kexec ..., Eric W. Biederman, (Fri Feb 15, 10:02 am)