Skip to content

Convert x86 pgd_lists to ptdescs

Vishal Moola linux-mm lkml xen-devel 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 1 replyApplied
  2. v19 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Collect Review tags
- Rebase on 7.2-rc1

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9x86/mm/pat: Use IS_ENABLED() instead of ifdefarch/x86/mm/pat/set_memory.c+2 -30 replies
2/9x86/mm/pat: Convert __set_pmd_pte() to ptdescsarch/x86/mm/pat/set_memory.c+3 -30 replies
3/9x86/mm/pat: Convert collapse_pmd_page() to ptdescsarch/x86/mm/pat/set_memory.c+3 -30 replies
4/9x86/mm: Convert arch_sync_kernel_mappings() to ptdescsarch/x86/mm/fault.c+4 -40 replies
5/9x86/mm: Convert sync_global_pgds_l5() to ptdescsarch/x86/mm/init_64.c+4 -40 replies
6/9x86/mm: Convert sync_global_pgds_l4() to ptdescsarch/x86/mm/init_64.c+4 -40 replies
7/9x86/mm: Convert pgd_page_get_mm() to ptdescsarch/x86/include/asm/pgtable.h arch/x86/include/asm/pgtable_types.h arch/x86/mm/fault.c +2 more+7 -70 replies
8/9x86/xen: Convert xen_mm_pin_all() to ptdescsarch/x86/xen/mmu_pv.c+5 -50 replies
9/9x86/xen: Convert xen_mm_unpin_all() to ptdescsarch/x86/xen/mmu_pv.c+6 -60 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchMike Rapoport (Microsoft)William KucharskiJuergen Gross
1/9A-b R-b
2/9A-b R-b
3/9A-b R-b
4/9A-b R-b
5/9A-b R-b
6/9A-b R-b
7/9A-b R-b
8/9A-b R-b R-b
9/9A-b R-b R-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/9] Convert x86 pgd_lists to ptdescs

This continues the ptdesc conversions for x86[1]. This is a necessary step in preparation for the separate allocation of ptdescs from struct page. Once ptdescs are not wrappers, the pgd_list should be used to find our ptdesc, not page.

In fact, after patch 4 we can successfully boot a 32-bit x86 kernel that separately allocates ptdescs.

All of the patches are rather straightforward, I just kept them split up for ease of review. There are no intended functional changes as ptdescs are currently still wrappers around struct page.

[1] https://lore.kernel.org/linux-mm/[email protected]/

----------------

v2:
- Collect Review tags
- Rebase on 7.2-rc1

I've compiled and booted both 64 and 32 bit on a kernel with separately allocated ptdescs. I ensured the codepaths were hit for all the changes except Xen.

This applies cleanly to 7.2-rc1. Dave, can you please take this through the x86 mm tree?

Vishal Moola (9):
x86/mm/pat: Use IS_ENABLED() instead of ifdef x86/mm/pat: Convert __set_pmd_pte() to ptdescs x86/mm/pat: Convert collapse_pmd_page() to ptdescs x86/mm: Convert arch_sync_kernel_mappings() to ptdescs x86/mm: Convert sync_global_pgds_l5() to ptdescs x86/mm: Convert sync_global_pgds_l4() to ptdescs x86/mm: Convert pgd_page_get_mm() to ptdescs x86/xen: Convert xen_mm_pin_all() to ptdescs x86/xen: Convert xen_mm_unpin_all() to ptdescs

 arch/x86/include/asm/pgtable.h       |  2 +-
 arch/x86/include/asm/pgtable_types.h |  2 +-
 arch/x86/mm/fault.c                  |  8 ++++----
 arch/x86/mm/init_64.c                | 16 ++++++++--------
 arch/x86/mm/pat/set_memory.c         | 17 ++++++++---------
 arch/x86/mm/pgtable.c                |  4 ++--
 arch/x86/xen/mmu_pv.c                | 22 +++++++++++-----------
 7 files changed, 35 insertions(+), 36 deletions(-)
Signature · 1 line
2.54.0