arm/arm64: KVM: PSCI: use MPIDR to identify a target CPU
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 18 Oct 2013 17:19:03 +0000 (18:19 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:15 +0000 (17:18 +0200)
commit3d6b7ab3028ceacadd0a29b4757a788e24987d10
tree1b73239c5e31b0245c36a7e453bb6d10bc6807d7
parentc93a79267ff11590dd7835c6622bd9f29ef43e73
arm/arm64: KVM: PSCI: use MPIDR to identify a target CPU

The KVM PSCI code blindly assumes that vcpu_id and MPIDR are
the same thing. This is true when vcpus are organized as a flat
topology, but is wrong when trying to emulate any other topology
(such as A15 clusters).

Change the KVM PSCI CPU_ON code to look at the MPIDR instead
of the vcpu_id to pick a target CPU.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit 79c648806f9034abf54332b78043bb242189d953)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_emulate.h
arch/arm/kvm/psci.c
arch/arm64/include/asm/kvm_emulate.h