OSDN Git Service

KVM: arm64: Allow using kvm_nvhe_sym() in hyp code
authorQuentin Perret <qperret@google.com>
Fri, 19 Mar 2021 10:01:17 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Mar 2021 12:01:20 +0000 (12:01 +0000)
commitfa21472a316af8ad7af3114049db89678444c7ed
tree3c88e28e42dae04c2cae8e051d335232343443f2
parent40a50853d37af3fd2e98b769e1a79839ad16b107
KVM: arm64: Allow using kvm_nvhe_sym() in hyp code

In order to allow the usage of code shared by the host and the hyp in
static inline library functions, allow the usage of kvm_nvhe_sym() at
EL2 by defaulting to the raw symbol name.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210319100146.1149909-10-qperret@google.com
arch/arm64/include/asm/hyp_image.h