x86/entry: Implement user mode C entry points for #DB and #MCE
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Feb 2020 22:33:29 +0000 (23:33 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:00 +0000 (15:15 +0200)
commit4c0dcd8350a03cb65f645a039f2772be880ee74a
treec4d232c3383abba5950c28850b905980ab6bdc28
parentf08e32ec3cfcf9e6d3640007de590c225ab2e201
x86/entry: Implement user mode C entry points for #DB and #MCE

The MCE entry point uses the same mechanism as the IST entry point for
now. For #DB split the inner workings and just keep the nmi_enter/exit()
magic in the IST variant. Fixup the ASM code to emit the proper
noist_##cfunc call.

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/20200505135315.177564104@linutronix.de
arch/x86/entry/entry_64.S
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/traps.c