Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/kvm/
H A Dkvm_page_table_test.c345 pthread_t *vcpu_threads; in run_test() local
354 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test()
355 TEST_ASSERT(vcpu_threads, "Memory allocation failed"); in run_test()
361 pthread_create(&vcpu_threads[i], NULL, vcpu_worker, in run_test()
410 pthread_join(vcpu_threads[i], NULL); in run_test()
418 free(vcpu_threads); in run_test()
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Dmemstress.c34 static struct vcpu_thread vcpu_threads[KVM_MAX_VCPUS]; variable
302 struct vcpu_thread *vcpu = &vcpu_threads[i]; in memstress_start_vcpu_threads()
311 while (!READ_ONCE(vcpu_threads[i].running)) in memstress_start_vcpu_threads()
325 pthread_join(vcpu_threads[i].thread, NULL); in memstress_join_vcpu_threads()