]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - virt/kvm/kvm_main.c
UBUNTU: SAUCE: kvm: Add helper function for creating VM worker threads
authorJunaid Shahid <junaids@google.com>
Thu, 31 Oct 2019 23:33:46 +0000 (00:33 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 6 Nov 2019 09:27:25 +0000 (10:27 +0100)
commitebce4f7669f0dc2effce32b323d0d3a66e9deca9
tree7f47516bbd8f252ff629e88c257ba76f76c19220
parent5bfdb2356c7be7befb45ad1d9cc3bf63446bd810
UBUNTU: SAUCE: kvm: Add helper function for creating VM worker threads

This adds 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>
CVE-2018-12207

[tyhicks: Backport to 4.15
 - Fix up conflicts in #includes of kvm_main.c
 - Minor context adjustments in kvm_host.h]
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c