Lines Matching refs:vcpu_id
49 int vcpu_id = vcpu_args->vcpu_id; in vcpu_worker() local
55 run = vcpu_state(vm, vcpu_id); in vcpu_worker()
60 ret = _vcpu_run(vm, vcpu_id); in vcpu_worker()
62 if (get_ucall(vm, vcpu_id, NULL) != UCALL_SYNC) { in vcpu_worker()
69 PER_VCPU_DEBUG("vCPU %d execution time: %ld.%.9lds\n", vcpu_id, in vcpu_worker()
292 int vcpu_id; in run_test() local
324 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
333 (vcpu_id * guest_percpu_mem_size); in run_test()
340 vcpu_id, vcpu_gpa, vcpu_gpa + vcpu_mem_size); in run_test()
350 r = pipe2(&pipefds[vcpu_id * 2], in run_test()
354 setup_demand_paging(vm, &uffd_handler_threads[vcpu_id], in run_test()
355 pipefds[vcpu_id * 2], p->uffd_mode, in run_test()
356 p->uffd_delay, &uffd_args[vcpu_id], in run_test()
369 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
370 pthread_create(&vcpu_threads[vcpu_id], NULL, vcpu_worker, in run_test()
371 &perf_test_args.vcpu_args[vcpu_id]); in run_test()
377 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
378 pthread_join(vcpu_threads[vcpu_id], NULL); in run_test()
379 PER_VCPU_DEBUG("Joined thread for vCPU %d\n", vcpu_id); in run_test()
390 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
391 r = write(pipefds[vcpu_id * 2 + 1], &c, 1); in run_test()
394 pthread_join(uffd_handler_threads[vcpu_id], NULL); in run_test()