Andre Przywara 4429fc64b9 arm/arm64: KVM: rework MPIDR assignment and add accessors
The virtual MPIDR registers (containing topology information) for the
guest are currently mapped linearily to the vcpu_id. Improve this
mapping for arm64 by using three levels to not artificially limit the
number of vCPUs.
To help this, change and rename the kvm_vcpu_get_mpidr() function to
mask off the non-affinity bits in the MPIDR register.
Also add an accessor to later allow easier access to a vCPU with a
given MPIDR. Use this new accessor in the PSCI emulation.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
2015-01-20 18:25:17 +01:00
..
2014-04-18 11:40:33 +02:00
2012-09-17 13:42:21 +01:00
2012-09-17 13:41:59 +01:00
2014-11-05 09:03:25 +01:00
2012-09-17 13:42:21 +01:00
2012-09-17 13:42:04 +01:00
2014-09-03 13:11:00 +00:00
2013-06-14 09:52:40 +01:00
2014-11-17 10:43:42 +00:00
2014-12-09 17:25:00 -08:00
2014-09-25 15:35:41 +01:00
2013-06-07 14:03:38 +01:00
2012-09-17 13:41:56 +01:00
2014-12-09 17:25:00 -08:00
2012-09-17 13:42:19 +01:00
2014-09-30 17:08:57 -06:00
2012-09-17 13:42:17 +01:00
2014-11-28 10:24:59 +00:00
2012-09-17 13:42:07 +01:00
2012-09-17 10:24:46 +01:00
2014-07-10 11:06:00 +01:00
2014-03-20 17:41:27 +00:00
2014-12-09 13:12:47 -08:00
2014-11-28 10:24:59 +00:00
2012-09-17 13:42:09 +01:00
2012-09-17 13:42:09 +01:00