diff options
| author | Sean Christopherson <[email protected]> | 2021-11-11 00:03:09 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-11-16 12:43:27 +0000 |
| commit | cf1d59300ab27af6a2e96b4882fe3d9a72b32b15 (patch) | |
| tree | 5c4487c45b510449bcbb4169f795a365518f72db /tools/testing/selftests/kvm/include/perf_test_util.h | |
| parent | KVM: selftests: Create VM with adjusted number of guest pages for perf tests (diff) | |
| download | kernel-cf1d59300ab27af6a2e96b4882fe3d9a72b32b15.tar.gz kernel-cf1d59300ab27af6a2e96b4882fe3d9a72b32b15.zip | |
KVM: selftests: Fill per-vCPU struct during "perf_test" VM creation
Fill the per-vCPU args when creating the perf_test VM instead of having
the caller do so. This helps ensure that any adjustments to the number
of pages (and thus vcpu_memory_bytes) are reflected in the per-VM args.
Automatically filling the per-vCPU args will also allow a future patch
to do the sync to the guest during creation.
Signed-off-by: Sean Christopherson <[email protected]>
[Updated access_tracking_perf_test as well.]
Signed-off-by: David Matlack <[email protected]>
Reviewed-by: Ben Gardon <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/include/perf_test_util.h')
| -rw-r--r-- | tools/testing/selftests/kvm/include/perf_test_util.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/testing/selftests/kvm/include/perf_test_util.h b/tools/testing/selftests/kvm/include/perf_test_util.h index 9348580dc5be..91804be1cf53 100644 --- a/tools/testing/selftests/kvm/include/perf_test_util.h +++ b/tools/testing/selftests/kvm/include/perf_test_util.h @@ -39,10 +39,8 @@ extern struct perf_test_args perf_test_args; struct kvm_vm *perf_test_create_vm(enum vm_guest_mode mode, int vcpus, uint64_t vcpu_memory_bytes, int slots, - enum vm_mem_backing_src_type backing_src); + enum vm_mem_backing_src_type backing_src, + bool partition_vcpu_memory_access); void perf_test_destroy_vm(struct kvm_vm *vm); -void perf_test_setup_vcpus(struct kvm_vm *vm, int vcpus, - uint64_t vcpu_memory_bytes, - bool partition_vcpu_memory_access); #endif /* SELFTEST_KVM_PERF_TEST_UTIL_H */ |
