RISC-V: KVM: use vma_lookup() instead of find_vma_intersection()
authorBo Liu <liubo03@inspur.com>
Wed, 7 Dec 2022 03:46:11 +0000 (09:16 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 7 Dec 2022 03:46:11 +0000 (09:16 +0530)
commitb3f2575a993497dde19c18db73208325e8efba60
tree207f0a394def092ca2e17a59198e132901b25cb1
parente78a11174de9e84e2f685618432754b83bd9f4ec
RISC-V: KVM: use vma_lookup() instead of find_vma_intersection()

vma_lookup() finds the vma of a specific address with a cleaner
interface and is more readable.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/mmu.c