Skip to content

Commit 0b626b2

Browse files
Anshuman Khandualctmarinas
authored andcommitted
KVM: arm64: ptdump: Test PMD_TYPE_MASK for block mapping
Test given page table entries against PMD_TYPE_SECT on PMD_TYPE_MASK mask bits for identifying block mappings in stage 2 page tables. Cc: Marc Zyngier <[email protected]> Cc: Oliver Upton <[email protected]> Cc: James Morse <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Anshuman Khandual <[email protected]> Acked-by: Marc Zyngier <[email protected]> Reviewed-by: Ryan Roberts <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 0ad2507 commit 0b626b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kvm/ptdump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ static const struct ptdump_prot_bits stage2_pte_bits[] = {
5252
.set = "AF",
5353
.clear = " ",
5454
}, {
55-
.mask = PTE_TABLE_BIT | PTE_VALID,
56-
.val = PTE_VALID,
55+
.mask = PMD_TYPE_MASK,
56+
.val = PMD_TYPE_SECT,
5757
.set = "BLK",
5858
.clear = " ",
5959
},

0 commit comments

Comments
 (0)