]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit7cd0aaafaadcaaf280887f8b478393a9fcfc69e3
tree28d678eda3bdb58f3b259da9a7383297b3f08e78
parent1db9d9ded771389aae5760d20dd1bac113451b9c
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