Convert x86 pgd_lists to ptdescs
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
- v2 Latest9 patches 1 replyApplied
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | x86/mm/pat: Use IS_ENABLED() instead of ifdefarch/ | +2 | 0 replies | |
| 2/9 | x86/mm/pat: Convert __set_pmd_pte() to ptdescsarch/ | +3 | 0 replies | |
| 3/9 | x86/mm/pat: Convert collapse_pmd_page() to ptdescsarch/ | +3 | 0 replies | |
| 4/9 | x86/mm: Convert arch_sync_kernel_mappings() to ptdescsarch/ | +4 | 0 replies | |
| 5/9 | x86/mm: Convert sync_global_pgds_l5() to ptdescsarch/ | +4 | 0 replies | |
| 6/9 | x86/mm: Convert sync_global_pgds_l4() to ptdescsarch/ | +4 | 0 replies | |
| 7/9 | x86/mm: Convert pgd_page_get_mm() to ptdescsarch/ arch/ arch/ +2 more | +7 | 0 replies | |
| 8/9 | x86/xen: Convert xen_mm_pin_all() to ptdescsarch/ | +5 | 0 replies | |
| 9/9 | x86/xen: Convert xen_mm_unpin_all() to ptdescsarch/ | +6 | 0 replies |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Mike Rapoport (Microsoft) | William Kucharski | Juergen Gross |
|---|---|---|---|
| 1/9 | A-b | R-b | |
| 2/9 | A-b | R-b | |
| 3/9 | A-b | R-b | |
| 4/9 | A-b | R-b | |
| 5/9 | A-b | R-b | |
| 6/9 | A-b | R-b | |
| 7/9 | A-b | R-b | |
| 8/9 | A-b | R-b | R-b |
| 9/9 | A-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.
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