x86/entry: Convert NMI to IDTENTRY_NMI
Convert #NMI to IDTENTRY_NMI: - Implement the C entry point with DEFINE_IDTENTRY_NMI - Fixup the XEN/PV code - Remove the old prototypes No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Acked-by: Andy Lutomirski <luto@kernel.org> Link: https://lkml.kernel.org/r/20200505135314.609932306@linutronix.de
This commit is contained in:
@@ -609,13 +609,18 @@ struct trap_array_entry {
|
||||
.xen = xen_asm_##func, \
|
||||
.ist_okay = ist_ok }
|
||||
|
||||
#define TRAP_ENTRY_REDIR(func, xenfunc, ist_ok) { \
|
||||
.orig = asm_##func, \
|
||||
.xen = xen_asm_##xenfunc, \
|
||||
.ist_okay = ist_ok }
|
||||
|
||||
static struct trap_array_entry trap_array[] = {
|
||||
{ debug, xen_xendebug, true },
|
||||
{ double_fault, xen_double_fault, true },
|
||||
#ifdef CONFIG_X86_MCE
|
||||
TRAP_ENTRY(exc_machine_check, true ),
|
||||
#endif
|
||||
{ nmi, xen_xennmi, true },
|
||||
TRAP_ENTRY_REDIR(exc_nmi, exc_xennmi, true ),
|
||||
TRAP_ENTRY(exc_int3, false ),
|
||||
TRAP_ENTRY(exc_overflow, false ),
|
||||
#ifdef CONFIG_IA32_EMULATION
|
||||
|
@@ -32,7 +32,7 @@ xen_pv_trap asm_exc_divide_error
|
||||
xen_pv_trap debug
|
||||
xen_pv_trap xendebug
|
||||
xen_pv_trap asm_exc_int3
|
||||
xen_pv_trap xennmi
|
||||
xen_pv_trap asm_exc_xennmi
|
||||
xen_pv_trap asm_exc_overflow
|
||||
xen_pv_trap asm_exc_bounds
|
||||
xen_pv_trap asm_exc_invalid_op
|
||||
|
Reference in New Issue
Block a user