KVM: arm64: Use find_vma_intersection()
authorGavin Shan <gshan@redhat.com>
Tue, 16 Mar 2021 04:11:25 +0000 (12:11 +0800)
committerMarc Zyngier <maz@kernel.org>
Wed, 7 Apr 2021 13:33:22 +0000 (14:33 +0100)
commitc728fd4ce75e9c342ea96facc5a2fe5ddb976a67
treeb78c4e4c33eed41488f964c0a1b5a35012ca611f
parenteab62148478d339a37c7a6b37d34182ccf5056ad
KVM: arm64: Use find_vma_intersection()

find_vma_intersection() has been existing to search the intersected
vma. This uses the function where it's applicable, to simplify the
code.

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Keqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210316041126.81860-3-gshan@redhat.com
arch/arm64/kvm/mmu.c