Home
last modified time | relevance | path

Searched refs:vcpu_threads (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/kvm/
H A Dkvm_page_table_test.c340 pthread_t *vcpu_threads; in run_test() local
349 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test()
350 TEST_ASSERT(vcpu_threads, "Memory allocation failed"); in run_test()
356 pthread_create(&vcpu_threads[i], NULL, vcpu_worker, in run_test()
405 pthread_join(vcpu_threads[i], NULL); in run_test()
413 free(vcpu_threads); in run_test()
/linux/tools/testing/selftests/kvm/arm64/
H A Dvgic_lpi_stress.c305 pthread_t *vcpu_threads = malloc(nr_vcpus * sizeof(pthread_t)); in run_test() local
309 TEST_ASSERT(lpi_threads && vcpu_threads, "Failed to allocate pthread arrays"); in run_test()
314 pthread_create(&vcpu_threads[i], NULL, vcpu_worker_thread, vcpus[i]); in run_test()
330 pthread_join(vcpu_threads[i], NULL); in run_test()
/linux/tools/testing/selftests/kvm/lib/
H A Dmemstress.c33 static struct vcpu_thread vcpu_threads[KVM_MAX_VCPUS]; variable
292 struct vcpu_thread *vcpu = &vcpu_threads[i]; in memstress_start_vcpu_threads()
301 while (!READ_ONCE(vcpu_threads[i].running)) in memstress_start_vcpu_threads()
315 pthread_join(vcpu_threads[i].thread, NULL); in memstress_join_vcpu_threads()