]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:14:58 +0000 (11:14 +0200)
commitd5e7963fdf52ba609f960466fb864ce81966cd17
tree6a65d98de8a62097f9b3bd35bdda285c7d3cb649
parenta8f46a9f4da79c29b7af2a1b4f77c536da0fed3b
arm/arm64: KVM: PSCI: use MPIDR to identify a target CPU

commit 79c648806f9034abf54332b78043bb242189d953 upstream.

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>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/include/asm/kvm_emulate.h
arch/arm/kvm/psci.c
arch/arm64/include/asm/kvm_emulate.h