[libvirt] [PATCH 3/3] qemu cgroups: move new threads to new cgroup after cpuset is set up
John Ferlan
jferlan at redhat.com
Tue Dec 8 17:23:21 UTC 2015
On 11/13/2015 11:57 AM, Henning Schild wrote:
> 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 at siemens.com>
> ---
> src/qemu/qemu_cgroup.c | 19 ++++++++++---------
> 1 file changed, 10 insertions(+), 9 deletions(-)
>
This seems reasonable and follows (more or less) what was done for the
emulator at least with respect to order of operations.
Another weak ACK -
John
More information about the libvir-list
mailing list