Skip to content

x86/mm: Clean up and use temportary_mm more

Peter Zijlstra lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#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 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+70 -680 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+7 -50 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 temporary_mm machineryarch/x86/platform/efi/efi_64.c+3 -60 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

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

Read the v1 thread

Cover letter [PATCH 0/7] x86/mm: Clean up and use temportary_mm more

Hi,

These are most of the patches I had in x86/lazy and are the preparatory patches for x86 to eventually run witn MMU_LAZY_TLB_REFCOUNT=n.

The rebase and submission prompted by Rik's recent context switch optimization which touched unuse_temporary_mm() in a way incompatible with these patches.

I'll see if I can find time this merge window to also finish that last patch so that x86 can indeed switch to MMU_LAZY_TLB_REFCOUNT=n, that too should help with context switch times.