]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41f3e4a214878ce041d388003f527e6378034fcd
treec854fe4d9faebf34d44107e0d1c143beb367c253
parent0076fc2c5971b2bacd63da4ef0c01cfb7e84f84d
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