KVM: mips: Use kvm_get_vcpu() instead of open-coded access
authorMarc Zyngier <maz@kernel.org>
Tue, 16 Nov 2021 16:03:58 +0000 (16:03 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:13 +0000 (04:24 -0500)
commit75a9869f314d83ac70ebaa0b93773300681ab077
tree008e1ae559279bfb870f9eb1814f02d511bc660a
parent27592ae8dbe41033261b6fdf27d78998aabd2665
KVM: mips: Use kvm_get_vcpu() instead of open-coded access

As we are about to change the way vcpus are allocated, mandate
the use of kvm_get_vcpu() instead of open-coding the access.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Message-Id: <20211116160403.4074052-3-maz@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/loongson_ipi.c
arch/mips/kvm/mips.c