]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/kvm_host.h
UBUNTU: SAUCE: kvm: Add helper function for creating VM worker threads
[mirror_ubuntu-bionic-kernel.git] / include / linux / kvm_host.h
index 3b6113d1a1770c1d862ea3ee81b76aa29f451aa8..927d0002d9c9ba90b85585532f7b674101507b18 100644 (file)
@@ -1261,4 +1261,10 @@ static inline bool vcpu_valid_wakeup(struct kvm_vcpu *vcpu)
 }
 #endif /* CONFIG_HAVE_KVM_INVALID_WAKEUPS */
 
+typedef int (*kvm_vm_thread_fn_t)(struct kvm *kvm, uintptr_t data);
+
+int kvm_vm_create_worker_thread(struct kvm *kvm, kvm_vm_thread_fn_t thread_fn,
+                               uintptr_t data, const char *name,
+                               struct task_struct **thread_ptr);
+
 #endif