]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64/ptdump: Test both PTE_TABLE_BIT and PTE_VALID for block mappings
authorAnshuman Khandual <anshuman.khandual@arm.com>
Tue, 5 Nov 2024 04:41:54 +0000 (10:11 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 5 Nov 2024 11:56:29 +0000 (11:56 +0000)
commitdc9b74a76320dd87335956f27f09791fa922ea9b
tree39c2bcdfe70b9ad92ff0ad5d282d92076fc91d77
parentbaec2397971960e8d5661c616ce20d6a24d7dc4f
arm64/ptdump: Test both PTE_TABLE_BIT and PTE_VALID for block mappings

Test both PTE_TABLE_BIT and PTE_VALID for block mappings, similar to KVM S2
ptdump. This ensures consistency in identifying block mappings, both in the
S1 and the S2 page tables. Besides being kernel page tables, there will not
be any unmapped (!PTE_VALID) block mappings.

Cc: Will Deacon <will@kernel.org>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20241105044154.4064181-1-anshuman.khandual@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/ptdump.c