[PATCH 0/4] x86/nmi: NMI cleanups

From: Lai Jiangshan
Date: Mon Dec 13 2021 - 10:03:33 EST


From: Lai Jiangshan <laijs@xxxxxxxxxxxxxxxxx>

These are very simple cleanups for NMI. They make NMI code a bit
tidier.

Patch1-3 are picked from the patchset
https://lore.kernel.org/lkml/20211126101209.8613-1-jiangshanlai@xxxxxxxxx/
which coverts ASM code to C code.

Patch4 is new.

Lai Jiangshan (4):
x86/entry: Make paranoid_exit() callable
x86/entry: Call paranoid_exit() in asm_exc_nmi()
x86/nmi: Use DEFINE_IDTENTRY_NMI for NMI handler
x86/nmi: Convert nmi_cr2/nmi_dr7 to be func-local variable

arch/x86/entry/entry_64.S | 52 ++++++++++++---------------------------
arch/x86/kernel/nmi.c | 16 ++++++------
2 files changed, 24 insertions(+), 44 deletions(-)

--
2.19.1.6.gb485710b