Skip to content

Factor out, clean up and use the use_/unuse_temporary_mm() APIs some more

Ingo Molnar lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/alternatives branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7x86/mm: Add 'mm' argument to unuse_temporary_mm()arch/x86/kernel/alternative.c+3 -30 replies
2/7x86/events, x86/insn-eval: Remove incorrect current->active_mm referencesarch/x86/events/core.c arch/x86/lib/insn-eval.c+18 -40 replies
3/7x86/mm: Make use_/unuse_temporary_mm() non-staticarch/x86/include/asm/mmu_context.h arch/x86/kernel/alternative.c arch/x86/mm/tlb.c+67 -640 replies
4/7x86/mm: Remove 'mm' argument from unuse_temporary_mm() againarch/x86/include/asm/mmu_context.h arch/x86/kernel/alternative.c arch/x86/mm/tlb.c+6 -60 replies
5/7x86/mm: Allow temporary MMs when IRQs are onarch/x86/mm/tlb.c+12 -70 replies
6/7x86/efi: Make efi_enter/leave_mm() use the use_/unuse_temporary_mm() machineryarch/x86/platform/efi/efi_64.c+2 -54 replies
7/7x86/mm: Opt-in to IRQs-off activate_mm()arch/x86/Kconfig arch/x86/include/asm/mmu_context.h+2 -10 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchBorislav Petkov (AMD)
1/7
2/7
3/7
4/7
5/7
6/7T-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7 -v2] Factor out, clean up and use the use_/unuse_temporary_mm() APIs some more

These are a couple of cleanups and micro-optimizations by Andy and Peter around the x86 use_/unuse_temporary_mm() APIs, which were posted back in November, and which I merged on top of the WIP.x86/alternatives tree:

git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git WIP.x86/mm

Thanks,

Ingo

===============>

Andy Lutomirski (5):
x86/events, x86/insn-eval: Remove incorrect current->active_mm references x86/mm: Make use_/unuse_temporary_mm() non-static
x86/mm: Allow temporary MMs when IRQs are on
x86/efi: Make efi_enter/leave_mm() use the use_/unuse_temporary_mm() machinery x86/mm: Opt-in to IRQs-off activate_mm()

Peter Zijlstra (2):
x86/mm: Add 'mm' argument to unuse_temporary_mm() x86/mm: Remove 'mm' argument from unuse_temporary_mm() again

 arch/x86/Kconfig                   |  1 +
 arch/x86/events/core.c             |  9 ++++-
 arch/x86/include/asm/mmu_context.h |  5 ++-
 arch/x86/kernel/alternative.c      | 64 -----------------------------------
 arch/x86/lib/insn-eval.c           | 13 +++++--
 arch/x86/mm/tlb.c                  | 69 ++++++++++++++++++++++++++++++++++++++
 arch/x86/platform/efi/efi_64.c     |  7 ++--
 7 files changed, 94 insertions(+), 74 deletions(-)
Signature · 1 line
2.45.2