On 08/03/2012 12:36 AM, Hu Tao wrote:
From: Wen Congyang <wency(a)cn.fujitsu.com>
Introduce the function virCgroupForHypervisor() to create sub directory
for hypervisor thread(include I/O thread, vhost-net thread).
There is already function to create cgroup dir for vcpus. Function
virCgroupForHypervisor() creates cgroup dir for hypervisor, like those
for vcpus. The hierarchy looks like this:
cgroup mount point
+--libvirt
+--qemu
+--domain name
+--vcpu0
...
+--vcpuN
+--hypervisor
Signed-off-by: Wen Congyang <wency(a)cn.fujitsu.com>
Signed-off-by: Tang Chen <tangchen(a)cn.fujitsu.com>
Signed-off-by: Hu Tao <hutao(a)cn.fujitsu.com>
---
src/libvirt_private.syms | 1 +
src/util/cgroup.c | 42 ++++++++++++++++++++++++++++++++++++++++++
src/util/cgroup.h | 4 ++++
3 files changed, 47 insertions(+)
Looks okay in isolation, but I'll continue reviewing the entire series
before I push anything.
--
Eric Blake eblake(a)redhat.com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org