KVM: arm64: Fast-track kvm_mpidr_to_vcpu() when mpidr_data is available
authorMarc Zyngier <maz@kernel.org>
Wed, 27 Sep 2023 09:09:09 +0000 (10:09 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 30 Sep 2023 18:15:44 +0000 (18:15 +0000)
commit54a8006d0b49044d0cb682119686a45de906fe3c
treedf52cec701dec900fee31abf4fb865a07b22d810
parent5544750efd51143fee9e9184d69518c0c05426a1
KVM: arm64: Fast-track kvm_mpidr_to_vcpu() when mpidr_data is available

If our fancy little table is present when calling kvm_mpidr_to_vcpu(),
use it to recover the corresponding vcpu.

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Tested-by: Joey Gouly <joey.gouly@arm.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230927090911.3355209-10-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/arm.c