From: Andre Przywara Date: Mon, 2 Jun 2014 13:37:13 +0000 (+0200) Subject: arm/arm64: KVM: rework MPIDR assignment and add accessors X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~97^2~37^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4429fc64b90368e9bc93f933ea8b011d8db3a2f2;p=pandora-kernel.git 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 Reviewed-by: Christoffer Dall Reviewed-by: Marc Zyngier Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed