linux/arch/arm64
Ard Biesheuvel d40900fcb3 arm64: ptdump: Deal with translation levels folded at runtime
Currently, the ptdump code deals with folded PMD or PUD levels at build
time, by omitting those levels when invoking note_page. IOW, note_page()
is never invoked with level == 1 if P4Ds are folded in the build
configuration.

With the introduction of LPA2 support, we will defer some of these
folding decisions to runtime, so let's take care of this by overriding
the 'level' argument when this condition triggers.

Substituting the PUD or PMD strings for "PGD" when the level in question
is folded at build time is no longer necessary, and so the conditional
expressions can be simplified. This also makes the indirection of the
'name' field unnecessary, so change that into a char[] array, and make
the whole thing __ro_after_init.

Note that the mm_p?d_folded() functions currently ignore their mm
pointer arguments, but let's wire them up correctly anyway.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-83-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2024-02-16 12:42:42 +00:00
..
boot Samsung fixes for v6.8 2024-01-25 18:23:10 +01:00
configs arm64: defconfig reorder config lines 2024-01-11 09:34:42 +01:00
crypto crypto: arm64/sm4 - Remove cfb(sm4) 2023-12-08 11:59:45 +08:00
hyperv
include arm64: mm: Add support for folding PUDs at runtime 2024-02-16 12:42:41 +00:00
kernel arm64: mm: Add support for folding PUDs at runtime 2024-02-16 12:42:41 +00:00
kvm arm64: mm: Use 48-bit virtual addressing for the permanent ID map 2024-02-16 12:42:34 +00:00
lib arm64: Get rid of ARM64_HAS_NO_HW_PREFETCH 2023-12-05 12:02:52 +00:00
mm arm64: ptdump: Deal with translation levels folded at runtime 2024-02-16 12:42:42 +00:00
net bpf: Use arch_bpf_trampoline_size 2023-12-06 17:17:20 -08:00
tools arm64: mm: Handle LVA support as a CPU feature 2024-02-16 12:42:36 +00:00
xen
Kbuild
Kconfig arm64: kasan: Reduce minimum shadow alignment and enable 5 level paging 2024-02-16 12:42:40 +00:00
Kconfig.debug
Kconfig.platforms
Makefile arm64: vdso32: Remove unused vdso32-offsets.h 2024-01-30 11:59:17 +00:00