KVM: arm64: Remove vector_ptr param of hyp-init
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:41:05 +0000 (18:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 10:08:32 +0000 (10:08 +0000)
commit5be1d6226d35800393579340f35b8b0d7b2a3177
treed847cd987cb5aef89127415f4e0574cf16323729
parent78869f0f0552d032c7e32724c4abb2715e8f974a
KVM: arm64: Remove vector_ptr param of hyp-init

KVM precomputes the hyp VA of __kvm_hyp_host_vector, essentially a
constant (minus ASLR), before passing it to __kvm_hyp_init.
Now that we have alternatives for converting kimg VA to hyp VA, replace
this with computing the constant inside __kvm_hyp_init, thus removing
the need for an argument.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201202184122.26046-10-dbrazdil@google.com
arch/arm64/include/asm/kvm_asm.h
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/nvhe/hyp-init.S