KVM: selftests: Use vm_get_page_table_entry() in addr_arch_gva2gpa()
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:45:11 +0000 (00:45 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Nov 2022 00:58:56 +0000 (16:58 -0800)
commitefe91dc307d00766911fbcb5021bdc3a1cf9c79e
tree274ab8ef793ef78a15cd15b9b1f7655ce718f79c
parent99d51c6eef2dadc204363ab3bf58c91d02f895be
KVM: selftests: Use vm_get_page_table_entry() in addr_arch_gva2gpa()

Use vm_get_page_table_entry() in addr_arch_gva2gpa() to get the leaf PTE
instead of manually walking page tables.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221006004512.666529-7-seanjc@google.com
tools/testing/selftests/kvm/lib/x86_64/processor.c