]> 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)
commit6174f639331507c6e8c48ec3129f497d9c1886c6
tree4713eff877383dde7f10c3677d18e1a6a0bb0d22
parent8fa85a32ca94e2b47c7787f9e0cc950d080f573a
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