KVM: selftests: Play nice with huge pages when getting PTEs/GPAs
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:45:12 +0000 (00:45 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Nov 2022 00:58:56 +0000 (16:58 -0800)
commit96b69958c77d84e49c06ebe2e3502e4c1620e3c0
treef64b7b5fbfc8e65e3d19c3feb326c4de30b40cb3
parentefe91dc307d00766911fbcb5021bdc3a1cf9c79e
KVM: selftests: Play nice with huge pages when getting PTEs/GPAs

Play nice with huge pages when getting PTEs and translating GVAs to GPAs,
there's no reason to disallow using huge pages in selftests.  Use
PG_LEVEL_NONE to indicate that the caller doesn't care about the mapping
level and just wants to get the pte+level.

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