]> 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)
commit22eaaea9cbd166da648f9f79ef79d0e4efef99ba
tree559642145f6b0ed6252c8fce47f40821475e7aa8
parent57b094625b14305aa1d690e8490b973651500b83
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