]> 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)
commit45f8667865bad31992c1f43b02c6dc388af3e206
tree28d678eda3bdb58f3b259da9a7383297b3f08e78
parent8282d8dbe3bc2c63ed5aee02bd45d3002e0365e5
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