arm64: ptdump: Discover start of vmemmap region at runtime
authorArd Biesheuvel <ardb@kernel.org>
Wed, 13 Dec 2023 08:40:29 +0000 (09:40 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 9 Feb 2024 10:56:11 +0000 (10:56 +0000)
commitf9cca2444187f46e0bc90dfc3a5feb7154dbf38d
tree01344cb3a75458119bffe600cdbf224ec1af3510
parent34f879fbe461dcdcaecb8bece3266dbea3a745ba
arm64: ptdump: Discover start of vmemmap region at runtime

We will soon reclaim the part of the vmemmap region that covers VA space
that is not addressable by the hardware. To avoid confusion, ensure that
the 'vmemmap start' marker points at the start of the region that is
actually being used for the struct page array, rather than the start of
the region we set aside for it at build time.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20231213084024.2367360-13-ardb@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
arch/arm64/mm/ptdump.c