OSDN Git Service

KVM: selftests: Create VM with adjusted number of guest pages for perf tests
authorSean Christopherson <seanjc@google.com>
Thu, 11 Nov 2021 00:03:08 +0000 (00:03 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Nov 2021 12:43:27 +0000 (07:43 -0500)
commitf5e8fe2a92e4923b63d1edd6ed53d9856b6515ce
treec854fe4d9faebf34d44107e0d1c143beb367c253
parenta5ac0fd1b90ae811ba51da6a9928633bddefb792
KVM: selftests: Create VM with adjusted number of guest pages for perf tests

Use the already computed guest_num_pages when creating the so called
extra VM pages for a perf test, and add a comment explaining why the
pages are allocated as extra pages.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20211111000310.1435032-11-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/perf_test_util.c