diff options
author | David Brazdil <dbrazdil@google.com> | 2021-01-05 19:05:41 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-01-23 15:01:00 +0100 |
commit | 247bc166e6b3b1e4068f120f55582a3aa210cc2d (patch) | |
tree | 8ad07b0f09b6056005df9a3cd611a480c0270c40 /arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c | |
parent | KVM: arm64: Remove patching of fn pointers in hyp (diff) | |
download | linux-247bc166e6b3b1e4068f120f55582a3aa210cc2d.tar.xz linux-247bc166e6b3b1e4068f120f55582a3aa210cc2d.zip |
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
Diffstat (limited to 'arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c')
-rw-r--r-- | arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c b/arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c index 8f0585640241..87a54375bd6e 100644 --- a/arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c +++ b/arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c @@ -64,7 +64,7 @@ int __vgic_v2_perform_cpuif_access(struct kvm_vcpu *vcpu) } rd = kvm_vcpu_dabt_get_rd(vcpu); - addr = hyp_symbol_addr(kvm_vgic_global_state)->vcpu_hyp_va; + addr = kvm_vgic_global_state.vcpu_hyp_va; addr += fault_ipa - vgic->vgic_cpu_base; if (kvm_vcpu_dabt_iswrite(vcpu)) { |