x86/entry: Convert Invalid Opcode exception to IDTENTRY
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Feb 2020 22:16:18 +0000 (23:16 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:47 +0000 (15:14 +0200)
commit49893c5cb281f8691dcbe53e6f85a963f47a4b9b
tree2d98ef395c499db0f23c6420411f30d80d61dc91
parent58d9c81facf55dbd1836d114ce360a048e3a0582
x86/entry: Convert Invalid Opcode exception to IDTENTRY

Convert #UD to IDTENTRY:
  - Implement the C entry point with DEFINE_IDTENTRY
  - Emit the ASM stub with DECLARE_IDTENTRY
  - Remove the ASM idtentry in 64bit
  - Remove the open coded ASM entry code in 32bit
  - Fixup the XEN/PV code
  - Fixup the FOOF bug call in fault.c
  - 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: Andy Lutomirski <luto@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200505134904.955511913@linutronix.de
arch/x86/entry/entry_32.S
arch/x86/entry/entry_64.S
arch/x86/include/asm/idtentry.h
arch/x86/include/asm/traps.h
arch/x86/kernel/idt.c
arch/x86/kernel/traps.c
arch/x86/mm/fault.c
arch/x86/xen/enlighten_pv.c
arch/x86/xen/xen-asm_64.S