kvm: arm64: Remove hyp_adr/ldr_this_cpu
authorDavid Brazdil <dbrazdil@google.com>
Tue, 22 Sep 2020 20:49:05 +0000 (21:49 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 30 Sep 2020 07:37:07 +0000 (08:37 +0100)
commitea391027d35546d9155f1350123b5af8bddec706
tree8fd25a779b517b85fe28976c8bb5f1991eebe382
parent717cf94adb54095d14a6674baea73123188f2901
kvm: arm64: Remove hyp_adr/ldr_this_cpu

The hyp_adr/ldr_this_cpu helpers were introduced for use in hyp code
because they always needed to use TPIDR_EL2 for base, while
adr/ldr_this_cpu from kernel proper would select between TPIDR_EL2 and
_EL1 based on VHE/nVHE.

Simplify this now that the hyp mode case can be handled using the
__KVM_VHE/NVHE_HYPERVISOR__ macros.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Andrew Scull <ascull@google.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200922204910.7265-6-dbrazdil@google.com
arch/arm64/include/asm/assembler.h
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kvm/hyp/hyp-entry.S