Skip to content

x86/entry: Consolidation - Part IV

Thomas Gleixner lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16x86/entry: Provide IDTENTRY_ISTarch/x86/include/asm/idtentry.h+70 -00 replies
2/16x86/entry: Convert Machine Check to IDTENTRY_ISTarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h +11 more+25 -410 replies
3/16x86/idtentry: Provide IDTENTRY_XEN for XEN/PVarch/x86/include/asm/idtentry.h+17 -10 replies
4/16x86/entry: Convert NMI to IDTENTRY_NMIarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h +5 more+25 -220 replies
5/16x86/entry: Convert Debug exception to IDTENTRY_DBarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h +5 more+17 -290 replies
6/16x86/entry/64: Remove error code clearing from #DB and #MCE ASM stubarch/x86/entry/entry_64.S+0 -10 replies
7/16x86/entry: Provide IDTRENTRY_NOIST variants for #DB and #MCarch/x86/include/asm/idtentry.h+16 -10 replies
8/16x86/entry: Implement user mode C entry points for #DB and #MCEarch/x86/entry/entry_64.S arch/x86/kernel/cpu/mce/core.c arch/x86/kernel/traps.c+34 -90 replies
9/16x86/entry: Provide IDTENTRY_DFarch/x86/include/asm/idtentry.h+82 -00 replies
10/16x86/entry: Convert double fault exception to IDTENTRY_DFarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h +6 more+21 -300 replies
11/16x86/entry: Switch XEN/PV hypercall entry to IDTENTRYarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h +5 more+32 -170 replies
12/16x86/entry/64: Simplify idtentry_bodyarch/x86/entry/entry_64.S+0 -20 replies
13/16x86/entry: Move irqflags and context tracking to C for simple idtentriesarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h+18 -119 replies
14/16x86/entry: Provide IDTENTRY_CR2arch/x86/include/asm/idtentry.h+45 -00 replies
15/16x86/entry: Switch page fault exceptions to idtentry_simplearch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h +7 more+34 -942 replies
16/16x86/entry: Disable interrupts in IDTENTRYarch/x86/entry/entry_64.S arch/x86/include/asm/idtentry.h+3 -33 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 00/16] x86/entry: Consolidation - Part IV

Hi!

This is the forth batch of a 73 patches series which consolidates the x86 entry code. The larger explanation is in the part I cover letter:

https://lore.kernel.org/r/[email protected]

I applies on top of part III which can be found here:

https://lore.kernel.org/r/[email protected]

This part consolidates the entry stub ASM code generation further by:

- Converting the more complex exceptions to the new IDTENTRY scheme

- Providing seperate C entry points for #DB and #MC (entry from user/kernel) to make addressing the RCU vs. world issues which were discussed in the last weeks simpler.

- Moving the CR2 read for page fault handlers out of ASM code

This applies on top of part three which is available here:

git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git entry-v1-part3

To get part 1 - 4 pull from here:

git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git entry-v1-part4

Thanks,

tglx

8<---------------

 entry/entry_32.S          |   77 +-----------
 entry/entry_64.S          |   89 ++------------
 include/asm/idtentry.h    |  287 +++++++++++++++++++++++++++++++++++++++++++++-
 include/asm/kvm_para.h    |    1 
 include/asm/mce.h         |    2 
 include/asm/traps.h       |   34 -----
 kernel/cpu/mce/core.c     |   25 ++--
 kernel/cpu/mce/inject.c   |    4 
 kernel/cpu/mce/internal.h |    2 
 kernel/cpu/mce/p5.c       |    2 
 kernel/cpu/mce/winchip.c  |    2 
 kernel/doublefault_32.c   |    7 -
 kernel/idt.c              |   24 +--
 kernel/kvm.c              |    8 -
 kernel/nmi.c              |    4 
 kernel/traps.c            |   49 +++++--
 kvm/vmx/vmx.c             |    2 
 mm/fault.c                |   20 ++-
 xen/enlighten_pv.c        |   17 +-
 xen/setup.c               |    4 
 xen/smp_pv.c              |    3 
 xen/xen-asm_32.S          |    8 -
 xen/xen-asm_64.S          |   14 +-
 xen/xen-ops.h             |    1 
 24 files changed, 432 insertions(+), 254 deletions(-)