x86/nmi: Test commit for exc_nmi handler losing NMIs
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c
index 0342dce..c068048 100644
--- a/arch/x86/kernel/nmi.c
+++ b/arch/x86/kernel/nmi.c
@@ -495,8 +495,10 @@ DEFINE_IDTENTRY_RAW(exc_nmi)
* cause nested NMIs, but those can be handled safely.
*/
sev_es_nmi_complete();
- if (IS_ENABLED(CONFIG_NMI_CHECK_CPU))
+ if (IS_ENABLED(CONFIG_NMI_CHECK_CPU)) {
arch_atomic_long_inc(&nsp->idt_calls);
+ return;
+ }
if (IS_ENABLED(CONFIG_SMP) && arch_cpu_is_offline(smp_processor_id()))
return;