]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Skip computing hyp VA layout for VHE
authorDavid Brazdil <dbrazdil@google.com>
Tue, 8 Dec 2020 14:24:49 +0000 (14:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 22 Dec 2020 10:48:56 +0000 (10:48 +0000)
commitc22e6731e07700ebfc630c53aa656efa405cf4ce
treea864ed009261b1e3a304b8e6518ebb8d0d678392
parentd7aed62144e8c6a4924cfba66bc10b9e1fd705d2
KVM: arm64: Skip computing hyp VA layout for VHE

Computing the hyp VA layout is redundant when the kernel runs in EL2 and
hyp shares its VA mappings. Make calling kvm_compute_layout()
conditional on not just CONFIG_KVM but also !is_kernel_in_hyp_mode().

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201208142452.87237-4-dbrazdil@google.com
arch/arm64/kernel/smp.c