Lines Matching refs:init_context
6090 struct kvm_vm_worker_thread_context *init_context = context; in kvm_vm_worker_thread() local
6092 struct kvm *kvm = init_context->kvm; in kvm_vm_worker_thread()
6093 kvm_vm_thread_fn_t thread_fn = init_context->thread_fn; in kvm_vm_worker_thread()
6094 uintptr_t data = init_context->data; in kvm_vm_worker_thread()
6103 err = cgroup_attach_task_all(init_context->parent, current); in kvm_vm_worker_thread()
6110 set_user_nice(current, task_nice(init_context->parent)); in kvm_vm_worker_thread()
6113 init_context->err = err; in kvm_vm_worker_thread()
6114 complete(&init_context->init_done); in kvm_vm_worker_thread()
6115 init_context = NULL; in kvm_vm_worker_thread()
6152 struct kvm_vm_worker_thread_context init_context = {}; in kvm_vm_create_worker_thread() local
6156 init_context.kvm = kvm; in kvm_vm_create_worker_thread()
6157 init_context.parent = current; in kvm_vm_create_worker_thread()
6158 init_context.thread_fn = thread_fn; in kvm_vm_create_worker_thread()
6159 init_context.data = data; in kvm_vm_create_worker_thread()
6160 init_completion(&init_context.init_done); in kvm_vm_create_worker_thread()
6162 thread = kthread_run(kvm_vm_worker_thread, &init_context, in kvm_vm_create_worker_thread()
6170 wait_for_completion(&init_context.init_done); in kvm_vm_create_worker_thread()
6172 if (!init_context.err) in kvm_vm_create_worker_thread()
6175 return init_context.err; in kvm_vm_create_worker_thread()