KVM: selftests: Add PTE helper for x86-64 in preparation for hugepages
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 20:05:26 +0000 (13:05 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 15:47:49 +0000 (11:47 -0400)
commitf681d6861b0c7b28af1a339171602a6e82b1cbda
tree964f156b4fbd8364d4e7ba481930160618e58c75
parent6d96ca6a602b24013c8be1160d40c667e133ddb9
KVM: selftests: Add PTE helper for x86-64 in preparation for hugepages

Add a helper to retrieve a PTE pointer given a PFN, address, and level
in preparation for adding hugepage support.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622200529.3650424-17-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/x86_64/processor.c