On Tue, Aug 21, 2012 at 05:18:30PM +0800, Hu Tao wrote:
vcpu threads pin are implemented using sched_setaffinity(), but
not controlled by cgroup. This patch does the following things:
1) enable cpuset cgroup
2) reflect all the vcpu threads pin info to cgroup
Signed-off-by: Tang Chen <tangchen(a)cn.fujitsu.com>
Signed-off-by: Hu Tao <hutao(a)cn.fujitsu.com>
---
src/libvirt_private.syms | 2 ++
src/qemu/qemu_cgroup.c | 43 ++++++++++++++++++++++++
src/qemu/qemu_cgroup.h | 4 +++
src/qemu/qemu_driver.c | 82 +++++++++++++++++++++++++++++++++-------------
src/util/cgroup.c | 35 +++++++++++++++++++-
src/util/cgroup.h | 3 ++
6 files changed, 146 insertions(+), 23 deletions(-)
ACK
Danielx
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|