RFC restore large page mappings in direct map for secretmem
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/secretmem: try to restore large page mappings in direct mapinclude/ mm/ | +16 | 7 replies | |
| 2/2 | x86/mm: restore large page mappings for secretmemarch/ arch/ | +29 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Xueyuan Chen |
|---|---|
| 1/2 | T-b |
| 2/2 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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