diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-05-27 16:50:29 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-07-10 13:00:01 +0300 |
commit | ba1f2b2eaa2a529dba722507c55ff3d761d325dd (patch) | |
tree | d46ece3c91564b177457203613c172059cae4cc0 /arch/x86/include/asm/idtentry.h | |
parent | 859d069ee1ddd87862e1d6a356a82ed417dbeb67 (diff) | |
download | linux-ba1f2b2eaa2a529dba722507c55ff3d761d325dd.tar.xz |
x86/entry: Fix NMI vs IRQ state tracking
While the nmi_enter() users did
trace_hardirqs_{off_prepare,on_finish}() there was no matching
lockdep_hardirqs_*() calls to complete the picture.
Introduce idtentry_{enter,exit}_nmi() to enable proper IRQ state
tracking across the NMIs.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20200623083721.216740948@infradead.org
Diffstat (limited to 'arch/x86/include/asm/idtentry.h')
-rw-r--r-- | arch/x86/include/asm/idtentry.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/idtentry.h b/arch/x86/include/asm/idtentry.h index 7227225cf45d..2b0497486525 100644 --- a/arch/x86/include/asm/idtentry.h +++ b/arch/x86/include/asm/idtentry.h @@ -20,6 +20,9 @@ typedef struct idtentry_state { idtentry_state_t idtentry_enter(struct pt_regs *regs); void idtentry_exit(struct pt_regs *regs, idtentry_state_t state); +bool idtentry_enter_nmi(struct pt_regs *regs); +void idtentry_exit_nmi(struct pt_regs *regs, bool irq_state); + /** * DECLARE_IDTENTRY - Declare functions for simple IDT entry points * No error code pushed by hardware |