KVM: arm64: pkvm: Pass vpcu instead of kvm to kvm_get_exit_handler_array()
authorMarc Zyngier <maz@kernel.org>
Wed, 13 Oct 2021 12:03:45 +0000 (13:03 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 18 Oct 2021 15:57:09 +0000 (16:57 +0100)
commit0c7639cc838263b6e38b3af76755d574f15cdf41
tree559642145f6b0ed6252c8fce47f40821475e7aa8
parent746bdeadc53b0d58fddea6442591f5ec3eeabe7d
KVM: arm64: pkvm: Pass vpcu instead of kvm to kvm_get_exit_handler_array()

Passing a VM pointer around is odd, and results in extra work on
VHE. Follow the rest of the design that uses the vcpu instead, and
let the nVHE code look into the struct kvm as required.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20211013120346.2926621-11-maz@kernel.org
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/vhe/switch.c