aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/perf_test_util.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-05-02 17:39:47 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-11 11:47:25 -0400
commitacaf50ad6dcb69a9857ef6c9a42100f6270f5f03 (patch)
tree9025c8d96bb673a856711ffad14db019f1536d11 /tools/testing/selftests/kvm/lib/perf_test_util.c
parentKVM: selftests: Drop @slot0_mem_pages from __vm_create_with_vcpus() (diff)
downloadlinux-acaf50ad6dcb69a9857ef6c9a42100f6270f5f03.tar.gz
linux-acaf50ad6dcb69a9857ef6c9a42100f6270f5f03.zip
KVM: selftests: Drop @num_percpu_pages from __vm_create_with_vcpus()
Drop @num_percpu_pages from __vm_create_with_vcpus(), all callers pass '0' and there's unlikely to be a test that allocates just enough memory that it needs a per-CPU allocation, but not so much that it won't just do its own memory management. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/perf_test_util.c')
-rw-r--r--tools/testing/selftests/kvm/lib/perf_test_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/lib/perf_test_util.c b/tools/testing/selftests/kvm/lib/perf_test_util.c
index 20d1b2ad75d1..9618b37c66f7 100644
--- a/tools/testing/selftests/kvm/lib/perf_test_util.c
+++ b/tools/testing/selftests/kvm/lib/perf_test_util.c
@@ -152,7 +152,7 @@ struct kvm_vm *perf_test_create_vm(enum vm_guest_mode mode, int nr_vcpus,
* The memory is also added to memslot 0, but that's a benign side
* effect as KVM allows aliasing HVAs in meslots.
*/
- vm = __vm_create_with_vcpus(mode, nr_vcpus, slot0_pages + guest_num_pages, 0,
+ vm = __vm_create_with_vcpus(mode, nr_vcpus, slot0_pages + guest_num_pages,
perf_test_guest_code, vcpus);
pta->vm = vm;