]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fc1a57ba3b02682dda5b37fc4a45ab34888f202
tree4713eff877383dde7f10c3677d18e1a6a0bb0d22
parent421bb3364ee189ff8911525d79f694664c8e6ef1
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