]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Turn host HVC handling into a dispatch table
authorMarc Zyngier <maz@kernel.org>
Sun, 11 Oct 2020 17:17:38 +0000 (18:17 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 9 Nov 2020 17:08:15 +0000 (17:08 +0000)
commit33ce9b8d76ed2f52b128eb8426e0a8e05a8f8119
tree28d678eda3bdb58f3b259da9a7383297b3f08e78
parentf58a44e25de1e574a01513cee477ffa1e2b871ab
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>
arch/arm64/kernel/image-vars.h
arch/arm64/kvm/hyp/nvhe/hyp-main.c