KVM: arm64: Choose hyp symbol based on context
authorAndrew Scull <ascull@google.com>
Tue, 15 Sep 2020 10:46:28 +0000 (11:46 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 15 Sep 2020 17:39:01 +0000 (18:39 +0100)
commitceee2fe4ba1f0b9dd388fd1030bea0162ca66a40
tree4713eff877383dde7f10c3677d18e1a6a0bb0d22
parentd7ca1079d8ea897a8c45c9f78693972e28859056
KVM: arm64: Choose hyp symbol based on context

Make CHOOSE_HYP_SYM select the symbol of the active hypervisor for the
host, the nVHE symbol for nVHE and the VHE symbol for VHE. The nVHE and
VHE hypervisors see their own symbols without prefixes and trigger a
link error when trying to use a symbol of the other hypervisor.

Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: David Brazdil <dbrazdil@google.com>
Link: https://lore.kernel.org/r/20200915104643.2543892-5-ascull@google.com
arch/arm64/include/asm/kvm_asm.h