Home
last modified time | relevance | path

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

/tools/testing/selftests/kvm/
Dmemslot_modification_stress_test.c34 static int nr_vcpus = 1; variable
107 vm = perf_test_create_vm(mode, nr_vcpus, guest_percpu_mem_size, 1, in run_test()
112 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test()
115 perf_test_setup_vcpus(vm, nr_vcpus, guest_percpu_mem_size, in run_test()
123 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) in run_test()
135 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) in run_test()
194 nr_vcpus = atoi(optarg); in main()
195 TEST_ASSERT(nr_vcpus > 0 && nr_vcpus <= max_vcpus, in main()
Ddemand_paging_test.c40 static int nr_vcpus = 1; variable
295 vm = perf_test_create_vm(mode, nr_vcpus, guest_percpu_mem_size, 1, in run_test()
307 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test()
310 perf_test_setup_vcpus(vm, nr_vcpus, guest_percpu_mem_size, in run_test()
315 malloc(nr_vcpus * sizeof(*uffd_handler_threads)); in run_test()
318 uffd_args = malloc(nr_vcpus * sizeof(*uffd_args)); in run_test()
321 pipefds = malloc(sizeof(int) * nr_vcpus * 2); in run_test()
324 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
337 vcpu_mem_size = guest_percpu_mem_size * nr_vcpus; in run_test()
369 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
[all …]
Dkvm_page_table_test.c73 static uint32_t nr_vcpus = 1; variable
271 vm = vm_create_with_vcpus(mode, nr_vcpus, DEFAULT_GUEST_PHY_PAGES, in pre_init_before_test()
334 pr_info("Number of testing vCPUs: %d\n", nr_vcpus); in pre_init_before_test()
345 for (vcpus = 0; vcpus < nr_vcpus; vcpus++) { in vcpus_complete_new_stage()
352 for (vcpus = 0; vcpus < nr_vcpus; vcpus++) { in vcpus_complete_new_stage()
376 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test()
382 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
427 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
432 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) in run_test()
486 nr_vcpus = atoi(optarg); in main()
[all …]
Ddirty_log_perf_test.c25 static int nr_vcpus = 1; variable
188 vm = perf_test_create_vm(mode, nr_vcpus, guest_percpu_mem_size, in run_test()
193 guest_num_pages = (nr_vcpus * guest_percpu_mem_size) >> vm_get_page_shift(vm); in run_test()
206 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test()
209 perf_test_setup_vcpus(vm, nr_vcpus, guest_percpu_mem_size, in run_test()
219 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
228 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
254 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
293 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) in run_test()
381 nr_vcpus = atoi(optarg); in main()
[all …]
/tools/testing/selftests/kvm/include/
Dkvm_util.h288 struct kvm_vm *vm_create_default_with_vcpus(uint32_t nr_vcpus, uint64_t extra_mem_pages,
293 struct kvm_vm *vm_create_with_vcpus(enum vm_guest_mode mode, uint32_t nr_vcpus,
/tools/testing/selftests/kvm/lib/
Dkvm_util.c343 struct kvm_vm *vm_create_with_vcpus(enum vm_guest_mode mode, uint32_t nr_vcpus, in vm_create_with_vcpus() argument
362 vcpu_pages = (DEFAULT_STACK_PGS + num_percpu_pages) * nr_vcpus; in vm_create_with_vcpus()
366 TEST_ASSERT(nr_vcpus <= kvm_check_cap(KVM_CAP_MAX_VCPUS), in vm_create_with_vcpus()
368 nr_vcpus, kvm_check_cap(KVM_CAP_MAX_VCPUS)); in vm_create_with_vcpus()
379 for (i = 0; i < nr_vcpus; ++i) { in vm_create_with_vcpus()
388 struct kvm_vm *vm_create_default_with_vcpus(uint32_t nr_vcpus, uint64_t extra_mem_pages, in vm_create_default_with_vcpus() argument
392 return vm_create_with_vcpus(VM_MODE_DEFAULT, nr_vcpus, DEFAULT_GUEST_PHY_PAGES, in vm_create_default_with_vcpus()