KVM: selftests: Genericize upper level page table entry struct
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 20:05:27 +0000 (13:05 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 15:47:55 +0000 (11:47 -0400)
commitb007e904b36a945d01a9080d754702ca5f9c68b4
tree12d2265743d810f19748bfdcf91e78e988a06b22
parentf681d6861b0c7b28af1a339171602a6e82b1cbda
KVM: selftests: Genericize upper level page table entry struct

In preparation for adding hugepage support, replace "pageMapL4Entry",
"pageDirectoryPointerEntry", and "pageDirectoryEntry" with a common
"pageUpperEntry", and add a helper to create an upper level entry. All
upper level entries have the same layout, using unique structs provides
minimal value and requires a non-trivial amount of code duplication.

No functional change intended.

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