]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce4134905e463a9661a45e0ceb9102e91bad3bb2
treed847cd987cb5aef89127415f4e0574cf16323729
parent3bdb1aff775017a774e30e542a74b90758e996f1
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