aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/boot/compressed/misc.h
diff options
context:
space:
mode:
authorNOMURA JUNICHI(野村 淳一) <[email protected]>2024-02-02 03:51:58 +0000
committerBorislav Petkov (AMD) <[email protected]>2024-02-06 10:51:11 +0100
commitac456ca0af4fe9630cf84e7efd20b7f7bf596aab (patch)
treeeb5157d638000904ed39208de9197e1cf61d3287 /arch/x86/boot/compressed/misc.h
parent9ba8ec8ee67a00eb5631364e4b716f35559724d4 (diff)
x86/boot: Add a message about ignored early NMIs
Commit 78a509fba9c9 ("x86/boot: Ignore NMIs during very early boot") added an empty handler in early boot stage to avoid boot failure due to spurious NMIs. Add a diagnostic message to show that early NMIs have occurred. [ bp: Touchups. ] [ Committer note: tested by stopping the guest really early and injecting NMIs through qemu's monitor. Result: early console in setup code Spurious early NMIs ignored: 13 ... ] Suggested-by: Borislav Petkov <[email protected]> Suggested-by: H. Peter Anvin <[email protected]> Signed-off-by: Jun'ichi Nomura <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Link: https://lore.kernel.org/lkml/20231130103339.GCZWhlA196uRklTMNF@fat_crate.local
Diffstat (limited to 'arch/x86/boot/compressed/misc.h')
-rw-r--r--arch/x86/boot/compressed/misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h
index 6502bc69d1b8..b353a7be380c 100644
--- a/arch/x86/boot/compressed/misc.h
+++ b/arch/x86/boot/compressed/misc.h
@@ -59,6 +59,7 @@ extern char _head[], _end[];
/* misc.c */
extern memptr free_mem_ptr;
extern memptr free_mem_end_ptr;
+extern int spurious_nmi_count;
void *malloc(int size);
void free(void *where);
void __putstr(const char *s);