]> git.baikalelectronics.ru Git - kernel.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)
commit2f5ba6c6959745dbabbad7de2fff7ecc2f4b83f0
treebfb6ffd84d817caa744d23a8315e46b5d4e77b78
parenta05fb09aa74796af47bbb84dc24ddcc526f863af
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