summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/image-vars.h
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-10-11 19:17:38 +0200
committerMarc Zyngier <maz@kernel.org>2020-11-09 18:08:15 +0100
commit7cd0aaafaadcaaf280887f8b478393a9fcfc69e3 (patch)
tree28d678eda3bdb58f3b259da9a7383297b3f08e78 /arch/arm64/kernel/image-vars.h
parentKVM: arm64: Add kimg_hyp_va() helper (diff)
downloadlinux-7cd0aaafaadcaaf280887f8b478393a9fcfc69e3.tar.xz
linux-7cd0aaafaadcaaf280887f8b478393a9fcfc69e3.zip
KVM: arm64: Turn host HVC handling into a dispatch table
Now that we can use function pointer, use a dispatch table to call the individual HVC handlers, leading to more maintainable code. Further improvements include helpers to declare the mapping of local variables to values passed in the host context. Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/image-vars.h')
-rw-r--r--arch/arm64/kernel/image-vars.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/image-vars.h b/arch/arm64/kernel/image-vars.h
index c615b285ff5b..e8c194f8de88 100644
--- a/arch/arm64/kernel/image-vars.h
+++ b/arch/arm64/kernel/image-vars.h
@@ -64,6 +64,7 @@ __efistub__ctype = _ctype;
/* Alternative callbacks for init-time patching of nVHE hyp code. */
KVM_NVHE_ALIAS(kvm_patch_vector_branch);
KVM_NVHE_ALIAS(kvm_update_va_mask);
+KVM_NVHE_ALIAS(kvm_update_kimg_phys_offset);
/* Global kernel state accessed by nVHE hyp code. */
KVM_NVHE_ALIAS(kvm_vgic_global_state);