Skip to content

x86/entry: Do context tracking with IRQs off (finally!)

Andy Lutomirski lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Fix a comment
- Make the ifdeffery less messy

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/entry/32: Change INT80 to be an interrupt gatearch/x86/entry/common.c arch/x86/entry/entry_32.S arch/x86/entry/entry_64_compat.S +1 more+9 -180 replies
2/2x86/entry: Do enter_from_user_mode with IRQs offarch/x86/entry/common.c arch/x86/include/asm/thread_info.h+15 -230 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] x86/entry: Do context tracking with IRQs off (finally!)

This provides no direct benefit by itself, but it finally lets us apply some of the speedups that Paolo and possible Rik independently
wrote: we won't need an irqsave/irqrestore pair in the context tracking code.

It should also let us remove the last callers of exception_enter in x86 kernels, but that removal should probably wait until I carefully re-read the page fault code.

Changes from v1:
- Fix a comment
- Make the ifdeffery less messy

Andy Lutomirski (2):
x86/entry/32: Change INT80 to be an interrupt gate x86/entry: Do enter_from_user_mode with IRQs off

 arch/x86/entry/common.c            | 48 +++++++++++---------------------------
 arch/x86/entry/entry_32.S          |  8 +++----
 arch/x86/entry/entry_64_compat.S   |  2 +-
 arch/x86/include/asm/thread_info.h |  5 +++-
 arch/x86/kernel/traps.c            |  2 +-
 5 files changed, 24 insertions(+), 41 deletions(-)
Signature · 1 line
2.5.0