Lines Matching refs:vcpu_id
48 int vcpu_id = vcpu_args->vcpu_id; in vcpu_worker() local
54 vcpu_args_set(vm, vcpu_id, 1, vcpu_id); in vcpu_worker()
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()
261 int vcpu_id; in run_test() local
289 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
293 vcpu_gpa = guest_test_phys_mem + (vcpu_id * guest_percpu_mem_size); in run_test()
295 vcpu_id, vcpu_gpa, vcpu_gpa + guest_percpu_mem_size); in run_test()
304 r = pipe2(&pipefds[vcpu_id * 2], in run_test()
309 &uffd_handler_threads[vcpu_id], in run_test()
310 pipefds[vcpu_id * 2], in run_test()
311 uffd_delay, &uffd_args[vcpu_id], in run_test()
325 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
326 pthread_create(&vcpu_threads[vcpu_id], NULL, vcpu_worker, in run_test()
327 &perf_test_args.vcpu_args[vcpu_id]); in run_test()
333 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
334 pthread_join(vcpu_threads[vcpu_id], NULL); in run_test()
335 PER_VCPU_DEBUG("Joined thread for vCPU %d\n", vcpu_id); in run_test()
346 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test()
347 r = write(pipefds[vcpu_id * 2 + 1], &c, 1); in run_test()
350 pthread_join(uffd_handler_threads[vcpu_id], NULL); in run_test()