ARM: KVM: Fix MPIDR computing to support virtual clusters
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 18 Oct 2013 17:19:04 +0000 (18:19 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:14 +0000 (17:18 +0200)
commitc0acda6fd7c83ca3cc8c5892247ece8c9651c9f3
tree82f605b601a8777e3744d0f66860207276c7126d
parentad8b3ca795b8534c292e8916ffdfc36b4bd09940
ARM: KVM: Fix MPIDR computing to support virtual clusters

In order to be able to support more than 4 A7 or A15 CPUs,
we need to fix the MPIDR computing to reflect the fact that
both A15 and A7 can only exist in clusters of at most 4 CPUs.

Fix the MPIDR computing to allow virtual clusters to be exposed
to the guest.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit 2d1d841bd44e24b58a3d3cc4fa793670aaa38fbf)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/coproc.c