]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Add wrapper to allocate page table page
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 20:05:24 +0000 (13:05 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 15:47:49 +0000 (11:47 -0400)
commit7d8748cb8a9467e814f460ad53a41a25e9d3bcae
tree359900099640eac2cdd4c75f7a78d0af2d09f0c3
parent53380d350eea08cb66f847f9ac289826db964bf2
KVM: selftests: Add wrapper to allocate page table page

Add a helper to allocate a page for use in constructing the guest's page
tables.  All architectures have identical address and memslot
requirements (which appear to be arbitrary anyways).

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622200529.3650424-15-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/aarch64/processor.c
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/lib/s390x/processor.c
tools/testing/selftests/kvm/lib/x86_64/processor.c
tools/testing/selftests/kvm/lib/x86_64/vmx.c