]> xenbits.xensource.com Git - libvirt.git/commit
qemu cgroups: move new threads to new cgroup after cpuset is set up
authorHenning Schild <henning.schild@siemens.com>
Mon, 14 Dec 2015 20:58:05 +0000 (15:58 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 14 Dec 2015 20:58:05 +0000 (15:58 -0500)
commit90b721e43ec9232b5b218e891437bed04548e841
tree8bf1eda8057fbd7784a4e9328f25d6cb7ce7ece7
parenta41c00b472efaa192d2deae51ab732e65903238f
qemu cgroups: move new threads to new cgroup after cpuset is set up

Moving tasks to cgroups implied sched_setaffinity. Changing the cpus in
a set implies the same for all tasks in the group.
The old code put the the thread into the cpuset inherited from the
machine cgroup, which allowed it to run outside of vcpupin for a short
while.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
src/qemu/qemu_cgroup.c