diff options
| author | Sean Christopherson <[email protected]> | 2022-05-03 00:39:47 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-06-11 15:47:25 +0000 |
| commit | acaf50ad6dcb69a9857ef6c9a42100f6270f5f03 (patch) | |
| tree | 9025c8d96bb673a856711ffad14db019f1536d11 /tools/testing/selftests/kvm/lib/perf_test_util.c | |
| parent | KVM: selftests: Drop @slot0_mem_pages from __vm_create_with_vcpus() (diff) | |
| download | kernel-acaf50ad6dcb69a9857ef6c9a42100f6270f5f03.tar.gz kernel-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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/perf_test_util.c')
| -rw-r--r-- | tools/testing/selftests/kvm/lib/perf_test_util.c | 2 |
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; |
