kvm: Add helper function for creating VM worker threads
authorJunaid Shahid <junaids@google.com>
Thu, 31 Oct 2019 23:14:08 +0000 (00:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Nov 2019 18:21:46 +0000 (19:21 +0100)
commit6082f2e28887bcef66d9b3b5710fd3491a722f0b
tree99445f96e6ca6ea3b637c82da25dab17fbab975a
parent5219505fcbb640e273a0d51c19c38de0100ec5a9
kvm: Add helper function for creating VM worker threads

commit c57c80467f90e5504c8df9ad3555d2c78800bf94 upstream.

Add a function to create a kernel thread associated with a given VM. In
particular, it ensures that the worker thread inherits the priority and
cgroups of the calling thread.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/kvm_host.h
virt/kvm/kvm_main.c