]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Switch page fault exception to IDTENTRY_RAW
authorThomas Gleixner <tglx@linutronix.de>
Thu, 21 May 2020 20:05:28 +0000 (22:05 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:09 +0000 (15:15 +0200)
commit74346978a68377eb82c31e39e95330fc81c227ba
treee7d395973be4df9527769a73cedcb99d1c835ce4
parent7adaf7e13bb0328fa5c315f6793e517f01192235
x86/entry: Switch page fault exception to IDTENTRY_RAW

Convert page fault exceptions to IDTENTRY_RAW:

  - Implement the C entry point with DEFINE_IDTENTRY_RAW
  - Add the CR2 read into the exception handler
  - Add the idtentry_enter/exit_cond_rcu() invocations in
    in the regular page fault handler and in the async PF
    part.
  - Emit the ASM stub with DECLARE_IDTENTRY_RAW
  - Remove the ASM idtentry in 64-bit
  - Remove the CR2 read from 64-bit
  - Remove the open coded ASM entry code in 32-bit
  - Fix up the XEN/PV code
  - Remove the old prototypes

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20200521202118.238455120@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/kvm.c
arch/x86/mm/fault.c
arch/x86/xen/enlighten_pv.c
arch/x86/xen/xen-asm_64.S