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)
commitc57c80467f90e5504c8df9ad3555d2c78800bf94
tree966043228f49ced836e69295f80305bc1ec29bc3
parentb8e8c8303ff28c61046a4d0f6ea99aea609a7dc0
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