]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit904953b41a0be9490a152e50abf40dec98525c78
tree559642145f6b0ed6252c8fce47f40821475e7aa8
parentbc37c52fabe605844686ae88b00f0bd4495bdc57
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