]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add support for systemd cgroup mount
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 25 Jul 2013 18:13:44 +0000 (19:13 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 31 Jul 2013 18:27:19 +0000 (19:27 +0100)
commitaedd46e7e32956b4f360ba631b47064c2bafcbff
tree16ba8da2003e385c32650832013d4444aee3e0bf
parent4574b475df830da437aa6384fd1452cecbb4b7d2
Add support for systemd cgroup mount

Systemd uses a named cgroup mount for tracking processes. Add
it as another type of controller, albeit one which we have to
special case in a number of places. In particular we must
never create/delete directories there, nor add tasks. Essentially
the systemd mount is to be considered read-only for libvirt.

With this change both the virCgroupDetectPlacement and
virCgroupCopyPlacement methods must be invoked. The copy
placement method will copy setup for resource controllers
only. The detect placement method will probe for any
named controllers, or resource controllers not already
setup.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/util/vircgroup.c
src/util/vircgroup.h
tests/vircgrouptest.c