Skip to content

RFC restore large page mappings in direct map for secretmem

Lance Yang linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/secretmem: try to restore large page mappings in direct mapinclude/linux/set_memory.h mm/secretmem.c+16 -27 replies
2/2x86/mm: restore large page mappings for secretmemarch/x86/include/asm/set_memory.h arch/x86/mm/pat/set_memory.c+29 -00 replies

Reviews trailers per patch

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

PatchXueyuan Chen
1/2T-b
2/2T-b

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] restore large page mappings in direct map for secretmem

Hi all,

secretmem removes the pages backing secretmem mappings from the direct map.

Removing one base page from the direct map can split the covering large mapping down to PTE mappings. Repeated splits can leave more of the direct map mapped with PTEs, meaning more TLB entries for the same range and potentially more TLB pressure.

This series adds an arch hook so secretmem can ask the architecture to try to restore large page mappings whenever secretmem restores a folio to the direct map.

Thanks,
Lance

Lance Yang (2):
mm/secretmem: try to restore large page mappings in direct map x86/mm: restore large page mappings for secretmem

 arch/x86/include/asm/set_memory.h |  2 ++
 arch/x86/mm/pat/set_memory.c      | 27 +++++++++++++++++++++++++++
 include/linux/set_memory.h        |  6 ++++++
 mm/secretmem.c                    | 12 ++++++++++--
 4 files changed, 45 insertions(+), 2 deletions(-)
Signature · 1 line
2.49.0