Skip to content

arm64/mm: Drop PXD_TABLE_BIT

Anshuman Khandual kvmarm linux-arm-kernel lkml 2 versions – Applied

Status from this message: Applied to arm64 (for-next/drop-pxd_table_bit), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 8 repliesApplied
  2. v11 patch 4 repliesApplied

Changes in v2 from the cover letter

- Changed pmd_mkhuge() and pud_mkhuge() implementation
- Changed pud_bad() implementation with an additional patch

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8KVM: arm64: ptdump: Test PMD_TYPE_MASK for block mappingarch/arm64/kvm/ptdump.c+2 -22 replies
2/8arm64/ptdump: Test PMD_TYPE_MASK for block mappingarch/arm64/mm/ptdump.c+2 -20 replies
3/8arm64/mm: Clear PXX_TYPE_MASK in mk_[pmd|pud]_sect_prot()arch/arm64/include/asm/pgtable.h+2 -20 replies
4/8arm64/mm: Clear PXX_TYPE_MASK and set PXD_TYPE_SECT in [pmd|pud]_mkhuge()arch/arm64/include/asm/pgtable.h+24 -20 replies
5/8arm64/mm: Check PXD_TYPE_TABLE in [p4d|pgd]_bad()arch/arm64/include/asm/pgtable.h+6 -20 replies
6/8arm64/mm: Check PUD_TYPE_TABLE in pud_bad()arch/arm64/include/asm/pgtable.h+2 -10 replies
7/8arm64/mm: Check pmd_table() in pmd_trans_huge()arch/arm64/include/asm/pgtable.h+12 -120 replies
8/8arm64/mm: Drop PXD_TABLE_BITarch/arm64/include/asm/pgtable-hwdef.h+0 -50 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchMarc Zyngier
1/8A-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v2 thread

Cover letter [PATCH V2 0/8] arm64/mm: Drop PXD_TABLE_BIT

Remove the PXX_TABLE_BIT definitions and instead rely on PXX_TYPE_MASK, PXX_TYPE_SECT and PXX_TYPE_TABLE. The latter versions are more abstract and also include the PTE_VALID bit.

This abstraction is valuable for the impending D128 page table support, which doesn't have a single page table bit to determine table vs block. Instead it has the skip level (SKL) field, where it will consider 0 to mean table and any other value to mean a block entry. So PXX_TABLE_BIT therefore doesn't fit into the D128 model well, but the type fields do.

This series applies on v6.14-rc3.

Changes in V2:

- Changed pmd_mkhuge() and pud_mkhuge() implementation
- Changed pud_bad() implementation with an additional patch

Changes in V1:

https://lore.kernel.org/all/[email protected]/

Cc Marc Zyngier <[email protected]>
Cc Oliver Upton <[email protected]>
Cc James Morse <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Ard Biesheuvel <[email protected]>
Cc Ryan Roberts <[email protected]>
Cc Mark Rutland <[email protected]>

Anshuman Khandual (6):
KVM: arm64: ptdump: Test PMD_TYPE_MASK for block mapping arm64/ptdump: Test PMD_TYPE_MASK for block mapping
arm64/mm: Clear PXX_TYPE_MASK in mk_[pmd|pud]_sect_prot() arm64/mm: Clear PXX_TYPE_MASK and set PXD_TYPE_SECT in [pmd|pud]_mkhuge() arm64/mm: Check PXD_TYPE_TABLE in [p4d|pgd]_bad()
arm64/mm: Drop PXD_TABLE_BIT

Ryan Roberts (2):
arm64/mm: Check PUD_TYPE_TABLE in pud_bad()
arm64/mm: Check pmd_table() in pmd_trans_huge()

 arch/arm64/include/asm/pgtable-hwdef.h |  5 --
 arch/arm64/include/asm/pgtable.h       | 65 ++++++++++++++++++--------
 arch/arm64/kvm/ptdump.c                |  4 +-
 arch/arm64/mm/ptdump.c                 |  4 +-
 4 files changed, 50 insertions(+), 28 deletions(-)
Signature · 1 line
2.25.1