]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Calculate hyp VA size only once
authorPetteri Kangaslampi <pekangas@google.com>
Tue, 13 Jan 2026 19:44:09 +0000 (19:44 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 14 Jan 2026 10:40:11 +0000 (10:40 +0000)
commit8e8eb10c107e67f22f87cd8c963d30ea73f04d5f
tree73fb429b4ad031f292e7820c87a0ed682a9fc72b
parentb1a9a9b96169bf1f9cb94b8aa33601996fad1e9c
KVM: arm64: Calculate hyp VA size only once

Calculate the hypervisor's VA size only once to maintain consistency
between the memory layout and MMU initialization logic. Previously the
two would be inconsistent when the kernel is configured for less than
IDMAP_VA_BITS of VA space.

Signed-off-by: Petteri Kangaslampi <pekangas@google.com>
Tested-by: Vincent Donnefort <vdonnefort@google.com>
Link: https://patch.msgid.link/20260113194409.2970324-2-pekangas@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/mmu.c
arch/arm64/kvm/va_layout.c