KVM: arm64: Remove hyp_symbol_addr
authorDavid Brazdil <dbrazdil@google.com>
Tue, 5 Jan 2021 18:05:41 +0000 (18:05 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 23 Jan 2021 14:01:00 +0000 (14:01 +0000)
commit247bc166e6b3b1e4068f120f55582a3aa210cc2d
tree8ad07b0f09b6056005df9a3cd611a480c0270c40
parent537db4af26e3f2e0f304f2032bc593f7e2a54938
KVM: arm64: Remove hyp_symbol_addr

Hyp code used the hyp_symbol_addr helper to force PC-relative addressing
because absolute addressing results in kernel VAs due to the way hyp
code is linked. This is not true anymore, so remove the helper and
update all of its users.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210105180541.65031-9-dbrazdil@google.com
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/nvhe/hyp-smp.c
arch/arm64/kvm/hyp/nvhe/psci-relay.c
arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c