]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: arm64: Clarify explanation of STAGE2_PGTABLE_LEVELS
authorChristoffer Dall <christoffer.dall@arm.com>
Tue, 6 Nov 2018 12:33:38 +0000 (13:33 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 18 Dec 2018 15:14:50 +0000 (15:14 +0000)
commit6992195cc6c6c4d673a3266ae59cbeeb746d61af
treebfb6ffd84d817caa744d23a8315e46b5d4e77b78
parent2e2f6c3c0b08eed3fcf7de3c7684c940451bdeb1
KVM: arm64: Clarify explanation of STAGE2_PGTABLE_LEVELS

In attempting to re-construct the logic for our stage 2 page table
layout I found the reasoning in the comment explaining how we calculate
the number of levels used for stage 2 page tables a bit backwards.

This commit attempts to clarify the comment, to make it slightly easier
to read without having the Arm ARM open on the right page.

While we're at it, fixup a typo in a comment that was recently changed.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/stage2_pgtable.h
virt/kvm/arm/mmu.c