Peter Zijlstra <peterz@xxxxxxxxxxxxx> writes:
On Fri, Feb 17, 2023 at 08:06:04PM +0800, Zeng Heng wrote:EFI loader? kexec on panic is supposed to be kernel to kernel.
If the cpu panics within the NMI interrupt context, there could be
unhandled NMI interrupts in the background which are blocked by processor
until next IRET instruction executes. Since that, it prevents nested
NMI handler execution.
In case of IRET execution during kdump reboot and no proper NMIs handler
registered at that point (such as during EFI loader)
If someone is getting EFI involved that is a bug.
This kills all of perf, including but not limited to the hardwareI can't think of one why we don't just leave
watchdog. However, it does nothing to external NMI sources like the NMI
button found on some HP machines.
Still I suppose it is sufficient for the normal case.
NMIs deliberately disabled
until the crash recover kernel figured out how to enable them safely.