Skip to content

Fix lazy mmu mode

Ryan Roberts linux-mm lkml sparclinux stable xen-devel 2 versions – Applied

Status from this message: [merged mm-stable] revert-x86-xen-allow-nesting-of-same-lazy-mode.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesApplied 5/5
  2. v14 patches 12 repliesSuperseded

Changes in v2 from the cover letter

================
- split v1 patch #1 into v2 patch #1 and #2; per David
- Added Acked-by tags from David and Andreas; Thanks!
- Refined the patches which are truely fixes and added to stable to cc

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mm: Fix lazy mmu docs and usageinclude/linux/pgtable.h+8 -60 repliesApplied
2/5fs/proc/task_mmu: Reduce scope of lazy mmu regionfs/proc/task_mmu.c+4 -70 repliesApplied
3/5sparc/mm: Disable preemption in lazy mmu modearch/sparc/mm/tlb.c+4 -10 repliesApplied
4/5sparc/mm: Avoid calling arch_enter/leave_lazy_mmu() in set_ptesarch/sparc/include/asm/pgtable_64.h+0 -20 repliesApplied
5/5Revert "x86/xen: allow nesting of same lazy mode"arch/x86/include/asm/xen/hypervisor.h arch/x86/xen/enlighten_pv.c+2 -140 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid HildenbrandAndreas LarssonJuergen Gross
SeriesA-b
1/5A-b
2/5A-b
3/5A-b A-b
4/5A-b A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/5] Fix lazy mmu mode

Hi All,

I'm planning to implement lazy mmu mode for arm64 to optimize vmalloc. As part of that, I will extend lazy mmu mode to cover kernel mappings in vmalloc table walkers. While lazy mmu mode is already used for kernel mappings in a few places, this will extend it's use significantly.

Having reviewed the existing lazy mmu implementations in powerpc, sparc and x86, it looks like there are a bunch of bugs, some of which may be more likely to trigger once I extend the use of lazy mmu. So this series attempts to clarify the requirements and fix all the bugs in advance of that series. See patch #1 commit log for all the details.

Note that I have only been able to compile test these changes but I think they are in good enough shape for some linux-next testing.

Applies on Friday's mm-unstable (5f089a9aa987), as I assume this would be preferred via that tree.

Changes since v1
================
- split v1 patch #1 into v2 patch #1 and #2; per David
- Added Acked-by tags from David and Andreas; Thanks!
- Refined the patches which are truely fixes and added to stable to cc

Thanks,
Ryan

Ryan Roberts (5):
mm: Fix lazy mmu docs and usage
fs/proc/task_mmu: Reduce scope of lazy mmu region sparc/mm: Disable preemption in lazy mmu mode sparc/mm: Avoid calling arch_enter/leave_lazy_mmu() in set_ptes Revert "x86/xen: allow nesting of same lazy mode"

 arch/sparc/include/asm/pgtable_64.h   |  2 --
 arch/sparc/mm/tlb.c                   |  5 ++++-
 arch/x86/include/asm/xen/hypervisor.h | 15 ++-------------
 arch/x86/xen/enlighten_pv.c           |  1 -
 fs/proc/task_mmu.c                    | 11 ++++-------
 include/linux/pgtable.h               | 14 ++++++++------
 6 files changed, 18 insertions(+), 30 deletions(-)

--
2.43.0