summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/kvm_arm.h
diff options
context:
space:
mode:
authorSuzuki K Poulose2018-09-26 18:32:40 +0200
committerMarc Zyngier2018-10-01 14:50:15 +0200
commitce00e3cb4fb496683708db6bfce470e5c7710ddc (patch)
treeec128bc6a50edabc67c56e4b1f6904fce4f64676 /arch/arm64/include/asm/kvm_arm.h
parentkvm: arm64: Add helper for loading the stage2 setting for a VM (diff)
downloadkernel-qcow2-linux-ce00e3cb4fb496683708db6bfce470e5c7710ddc.tar.gz
kernel-qcow2-linux-ce00e3cb4fb496683708db6bfce470e5c7710ddc.tar.xz
kernel-qcow2-linux-ce00e3cb4fb496683708db6bfce470e5c7710ddc.zip
arm64: Add a helper for PARange to physical shift conversion
On arm64, ID_AA64MMFR0_EL1.PARange encodes the maximum Physical Address range supported by the CPU. Add a helper to decode this to actual physical shift. If we hit an unallocated value, return the maximum range supported by the kernel. This will be used by KVM to set the VTCR_EL2.T0SZ, as it is about to move its place. Having this helper keeps the code movement cleaner. Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: James Morse <james.morse@arm.com> Cc: Christoffer Dall <cdall@kernel.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/kvm_arm.h')
0 files changed, 0 insertions, 0 deletions