Home
last modified time | relevance | path

Searched refs:vcpu_args (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.1/tools/testing/selftests/kvm/lib/
Dperf_test_util.c48 struct perf_test_vcpu_args *vcpu_args = &pta->vcpu_args[vcpu_idx]; in perf_test_guest_code() local
53 gva = vcpu_args->gva; in perf_test_guest_code()
54 pages = vcpu_args->pages; in perf_test_guest_code()
57 GUEST_ASSERT(vcpu_args->vcpu_idx == vcpu_idx); in perf_test_guest_code()
79 struct perf_test_vcpu_args *vcpu_args; in perf_test_setup_vcpus() local
83 vcpu_args = &pta->vcpu_args[i]; in perf_test_setup_vcpus()
85 vcpu_args->vcpu = vcpus[i]; in perf_test_setup_vcpus()
86 vcpu_args->vcpu_idx = i; in perf_test_setup_vcpus()
89 vcpu_args->gva = guest_test_virt_mem + in perf_test_setup_vcpus()
91 vcpu_args->pages = vcpu_memory_bytes / in perf_test_setup_vcpus()
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/
Daccess_tracking_perf_test.c129 struct perf_test_vcpu_args *vcpu_args) in mark_vcpu_memory_idle() argument
131 int vcpu_idx = vcpu_args->vcpu_idx; in mark_vcpu_memory_idle()
132 uint64_t base_gva = vcpu_args->gva; in mark_vcpu_memory_idle()
133 uint64_t pages = vcpu_args->pages; in mark_vcpu_memory_idle()
223 static void vcpu_thread_main(struct perf_test_vcpu_args *vcpu_args) in vcpu_thread_main() argument
225 struct kvm_vcpu *vcpu = vcpu_args->vcpu; in vcpu_thread_main()
227 int vcpu_idx = vcpu_args->vcpu_idx; in vcpu_thread_main()
237 mark_vcpu_memory_idle(vm, vcpu_args); in vcpu_thread_main()
Ddemand_paging_test.c45 static void vcpu_worker(struct perf_test_vcpu_args *vcpu_args) in vcpu_worker() argument
47 struct kvm_vcpu *vcpu = vcpu_args->vcpu; in vcpu_worker()
48 int vcpu_idx = vcpu_args->vcpu_idx; in vcpu_worker()
310 struct perf_test_vcpu_args *vcpu_args; in run_test() local
314 vcpu_args = &perf_test_args.vcpu_args[i]; in run_test()
317 vcpu_hva = addr_gpa2hva(vm, vcpu_args->gpa); in run_test()
318 vcpu_alias = addr_gpa2alias(vm, vcpu_args->gpa); in run_test()
332 vcpu_args->pages * perf_test_args.guest_page_size); in run_test()
361 perf_test_args.vcpu_args[0].pages * nr_vcpus / in run_test()
Dmemslot_modification_stress_test.c39 static void vcpu_worker(struct perf_test_vcpu_args *vcpu_args) in vcpu_worker() argument
41 struct kvm_vcpu *vcpu = vcpu_args->vcpu; in vcpu_worker()
Ddirty_log_perf_test.c70 static void vcpu_worker(struct perf_test_vcpu_args *vcpu_args) in vcpu_worker() argument
72 struct kvm_vcpu *vcpu = vcpu_args->vcpu; in vcpu_worker()
73 int vcpu_idx = vcpu_args->vcpu_idx; in vcpu_worker()
102 pages_count += vcpu_args->pages; in vcpu_worker()
/Linux-v6.1/tools/testing/selftests/kvm/include/
Dperf_test_util.h43 struct perf_test_vcpu_args vcpu_args[KVM_MAX_VCPUS]; member