]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: cgroup: Properly set up vcpu pinning
authorPeter Krempa <pkrempa@redhat.com>
Fri, 27 Mar 2015 09:23:19 +0000 (10:23 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 2 Apr 2015 08:12:08 +0000 (10:12 +0200)
commitf0fa9080d47b7aedad6f4884b8879d88688752a6
tree4ebc4dd68e2b34f320b6152bf65c5c74d91c1ae4
parent709500692101b187c9c1eb3ac4ed931bcdfb24ea
qemu: cgroup: Properly set up vcpu pinning

When the default cpuset or automatic numa placement is used libvirt
would place the whole parent cgroup in the specified cpuset. This then
disallowed to re-pin the vcpus to a different cpu.

This patch pins only the vcpu threads to the default cpuset and thus
allows to re-pin them later.

The following config would fail to start:
<domain type='kvm'>
  ...
  <vcpu placement='static' cpuset='0-1' current='2'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2-3'/>
    ...

This is a regression since a39f69d2b.
src/qemu/qemu_cgroup.c