summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2013-05-14 12:11:39 +0100
committerChristoffer Dall <christoffer.dall@linaro.org>2013-06-26 10:50:04 -0700
commit4db845c3d8e2f8a219e8ac48834dd4fe085e5d63 (patch)
treeff3b9cf0bc6b9e02ae7bf2776bda2f317de90808 /arch/arm/kvm
parent8734f16fb2aa4ff0bb57ad6532661a38bc8ff957 (diff)
downloadlinux-4db845c3d8e2f8a219e8ac48834dd4fe085e5d63.tar.gz
linux-4db845c3d8e2f8a219e8ac48834dd4fe085e5d63.tar.bz2
linux-4db845c3d8e2f8a219e8ac48834dd4fe085e5d63.zip
ARM: KVM: get rid of S2_PGD_SIZE
S2_PGD_SIZE defines the number of pages used by a stage-2 PGD and is unused, except for a VM_BUG_ON check that missuses the define. As the check is very unlikely to ever triggered except in circumstances where KVM is the least of our worries, just kill both the define and the VM_BUG_ON check. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
Diffstat (limited to 'arch/arm/kvm')
-rw-r--r--arch/arm/kvm/mmu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c
index 965706578f13..5385462d693a 100644
--- a/arch/arm/kvm/mmu.c
+++ b/arch/arm/kvm/mmu.c
@@ -370,9 +370,6 @@ int kvm_alloc_stage2_pgd(struct kvm *kvm)
if (!pgd)
return -ENOMEM;
- /* stage-2 pgd must be aligned to its size */
- VM_BUG_ON((unsigned long)pgd & (S2_PGD_SIZE - 1));
-
memset(pgd, 0, PTRS_PER_S2_PGD * sizeof(pgd_t));
kvm_clean_pgd(pgd);
kvm->arch.pgd = pgd;