]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Clean up the checking for huge mapping
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 7 May 2020 12:35:45 +0000 (20:35 +0800)
committerMarc Zyngier <maz@kernel.org>
Sat, 16 May 2020 14:05:02 +0000 (15:05 +0100)
commitf56b5ccac75cab21c269137eb157dda422499fb9
treed2211980834c3a1ede89b32f19dd45a087fbac65
parentede63e783dec0249e14827b669bf31481aedfd94
KVM: arm64: Clean up the checking for huge mapping

If we are checking whether the stage2 can map PAGE_SIZE,
we don't have to do the boundary checks as both the host
VMA and the guest memslots are page aligned. Bail the case
easily.

While we're at it, fixup a typo in the comment below.

Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200507123546.1875-2-yuzenghui@huawei.com
arch/arm64/kvm/mmu.c