diff options
author | Marc Zyngier <maz@kernel.org> | 2020-10-21 20:48:02 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-11-09 16:56:39 +0000 |
commit | 1db9d9ded771389aae5760d20dd1bac113451b9c (patch) | |
tree | 0b875630a1e300480e9532be817812633b5205b3 /drivers/firmware/psci/psci.c | |
parent | f8394f232b1eab649ce2df5c5f15b0e528c92091 (diff) |
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 'drivers/firmware/psci/psci.c')
0 files changed, 0 insertions, 0 deletions