[libvirt] [PATCH 2/9] vircgroup: add assertion to allow cgroup controllers to stay empty

Daniel P. Berrange berrange at redhat.com
Fri Feb 26 11:22:51 UTC 2016


On Tue, Feb 23, 2016 at 04:58:37PM +0100, Henning Schild wrote:
> When using a hierarchy of cgroups we might want to add tasks just to
> the children cgroups but never to the parent. To make sure we do not
> use a parent cgroup by accident add a mechanism that lets us assert
> a correct implementation in cases we want such a hierarchy.
> 
> i.e. for qemu cpusets we want all tasks in /vcpuX or /emulator, not
> in /.
> 
> Signed-off-by: Henning Schild <henning.schild at siemens.com>
> ---
>  src/libvirt_private.syms |  2 ++
>  src/util/vircgroup.c     | 19 +++++++++++++++++++
>  src/util/vircgroup.h     |  3 +++
>  src/util/vircgrouppriv.h |  1 +
>  4 files changed, 25 insertions(+)

This is a nice idea, but sadly it won't work - see comments on
later patches. So there's no point adding this.


Regards,
Daniel
-- 
|: 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 :|




More information about the libvir-list mailing list