linux/arch
Ard Biesheuvel 95e059b5db arm64: kvm: avoid CONFIG_PGTABLE_LEVELS for runtime levels
get_user_mapping_size() uses vabits_actual and CONFIG_PGTABLE_LEVELS to
provide the starting point for a table walk. This is fine for LVA, as
the number of translation levels is the same regardless of whether LVA
is enabled. However, with LPA2, this will no longer be the case, so
let's derive the number of levels from the number of VA bits directly.

Acked-by: Marc Zyngier <maz@kernel.org>
Acked-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-84-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2024-02-16 12:42:42 +00:00
..
alpha RTC for 6.8 2024-01-18 17:25:39 -08:00
arc IOMMU Updates for Linux v6.8 2024-01-18 15:16:57 -08:00
arm Samsung fixes for v6.8 2024-01-25 18:23:10 +01:00
arm64 arm64: kvm: avoid CONFIG_PGTABLE_LEVELS for runtime levels 2024-02-16 12:42:42 +00:00
csky vfs-6.8.netfs 2024-01-19 09:10:23 -08:00
hexagon asm-generic cleanups for 6.8 2024-01-10 18:13:44 -08:00
loongarch LoongArch: KVM: Add returns to SIMD stubs 2024-01-26 16:22:07 +08:00
m68k kbuild: Replace tabs with spaces when followed by conditionals 2024-01-31 23:24:27 +09:00
microblaze Microblaze patches for 6.8-rc1 2024-01-17 11:27:23 -08:00
mips mips: Call lose_fpu(0) before initializing fcr31 in mips_set_personality_nan 2024-01-27 11:08:04 +01:00
nios2 percpu: 2024-01-18 15:01:28 -08:00
openrisc
parisc parisc architecture fixes for kernel v6.8-rc3: 2024-02-01 12:32:43 -08:00
powerpc powerpc: iommu: Bring back table group release_ownership() call 2024-02-02 09:26:20 +01:00
riscv Arm SoC fixes for 6.8, part 1 2024-01-26 13:09:38 -08:00
s390 vfs-6.8.netfs 2024-01-19 09:10:23 -08:00
sh sh updates for v6.8 2024-01-20 09:24:06 -08:00
sparc sparc: Use device_get_match_data() 2024-01-19 08:08:53 -06:00
um um: Fix adding '-no-pie' for clang 2024-01-28 01:13:37 +09:00
x86 Kbuild fixes for v6.8 2024-02-01 11:57:42 -08:00
xtensa percpu: 2024-01-18 15:01:28 -08:00
.gitignore
Kconfig scs: add CONFIG_MMU dependency for vfree_atomic() 2024-01-25 23:52:21 -08:00