]> 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)
commit5af6082915e45d6a30dad21cb0b64861cc946a38
treebfb6ffd84d817caa744d23a8315e46b5d4e77b78
parent9bdc8aff705b95e44ec71ad0087c8cad35d54b79
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