]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: Add helper function for creating VM worker threads
authorJunaid Shahid <junaids@google.com>
Mon, 4 Nov 2019 11:22:02 +0000 (12:22 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 4 Nov 2019 11:22:02 +0000 (12:22 +0100)
commitd09e68b564bcc756c0bf9efdb98b97a55da90237
tree966043228f49ced836e69295f80305bc1ec29bc3
parent78311cba7f2287294def0fcbbfa1b341f11283c0
kvm: Add helper function for creating VM worker threads

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>
include/linux/kvm_host.h
virt/kvm/kvm_main.c