summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorZenghui Yu <yuzenghui@huawei.com>2019-02-14 01:45:46 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2019-02-19 21:05:55 +0000
commit1b44471b555930cd8d03ae9be86bd2c32fbf0a92 (patch)
treed8394b67dc4edfe795d8bc720f84b499b18b0c4a /arch/arm64
parenta37f0c3c46d2d5f4e94bb1e80e3f6f1f8fd89b40 (diff)
downloadlinux-0-day-1b44471b555930cd8d03ae9be86bd2c32fbf0a92.tar.gz
linux-0-day-1b44471b555930cd8d03ae9be86bd2c32fbf0a92.tar.xz
KVM: arm64: Fix comment for KVM_PHYS_SHIFT
Since Suzuki K Poulose's work on Dynamic IPA support, KVM_PHYS_SHIFT will be used only when machine_type's bits[7:0] equal to 0 (by default). Thus the outdated comment should be fixed. Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/include/asm/kvm_mmu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/kvm_mmu.h b/arch/arm64/include/asm/kvm_mmu.h
index c423c8c4fc398..b0742a16c6c9e 100644
--- a/arch/arm64/include/asm/kvm_mmu.h
+++ b/arch/arm64/include/asm/kvm_mmu.h
@@ -138,7 +138,8 @@ static inline unsigned long __kern_hyp_va(unsigned long v)
})
/*
- * We currently only support a 40bit IPA.
+ * We currently support using a VM-specified IPA size. For backward
+ * compatibility, the default IPA size is fixed to 40bits.
*/
#define KVM_PHYS_SHIFT (40)