summary refs log tree commit diff
path: root/arch/arm64/kvm/hyp/nvhe/hyp-main.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-10-21 20:48:02 +0100
committerMarc Zyngier <maz@kernel.org>2020-11-09 16:56:39 +0000
commit1db9d9ded771389aae5760d20dd1bac113451b9c (patch)
tree0b875630a1e300480e9532be817812633b5205b3 /arch/arm64/kvm/hyp/nvhe/hyp-main.c
parentf8394f232b1eab649ce2df5c5f15b0e528c92091 (diff)
downloadlinux-1db9d9ded771389aae5760d20dd1bac113451b9c.tar.gz
KVM: arm64: Add kimg_hyp_va() helper
KVM/arm64 is so far unable to deal with function pointers, as the compiler
will generate the kernel's runtime VA, and not the linear mapping address,
meaning that kern_hyp_va() will give the wrong result.

We so far have been able to use PC-relative addressing, but that's not
always easy to use, and prevents the implementation of things like
the mapping of an index to a pointer.

To allow this, provide a new helper that computes the required
translation from the kernel image to the HYP VA space.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/hyp/nvhe/hyp-main.c')
0 files changed, 0 insertions, 0 deletions