x86/fred: Add a NMI entry stub for FRED
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Sat, 16 Dec 2023 06:31:39 +0000 (22:31 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 31 Jan 2024 21:02:20 +0000 (22:02 +0100)
commitf8b8ee45f82b681606d288bcec89c9071b4079fc
treeafd012ef55b8580c4d119d3f169a834d1e9cb5dc
parent99fcc968e7c4b117c91f7d03c302d860b74b947b
x86/fred: Add a NMI entry stub for FRED

On a FRED system, NMIs nest both with themselves and faults, transient
information is saved into the stack frame, and NMI unblocking only
happens when the stack frame indicates that so should happen.

Thus, the NMI entry stub for FRED is really quite small...

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Xin Li <xin3.li@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Shan Kang <shan.kang@intel.com>
Link: https://lore.kernel.org/r/20231216063139.25567-1-xin3.li@intel.com
arch/x86/kernel/nmi.c