]> xenbits.xensource.com Git - libvirt.git/commit
Refactor cgroups to allow a group per driver to be managed directly
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 10 Jul 2009 10:40:04 +0000 (11:40 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 23 Jul 2009 16:38:06 +0000 (17:38 +0100)
commit946c489c6870007ebaa41339ed31f5460d159f61
tree923549c63aa7f29aeaa8dedc33f9cdd6959a8a54
parentde1ecd530279c1a0e888a23c083e621120600098
Refactor cgroups to allow a group per driver to be managed directly

Allow the driver level cgroup to be managed explicitly by the
hypervisor drivers, in order to detect whether to enable or
disable cgroup support for domains. Provides better error
reporting of failures. Also allow for creation of cgroups for
unprivileged drivers if controller is accessible by the user.

* src/cgroup.c, src/cgroup.h: Add an API to obtain a driver cgroup
* src/lxc_conf.h, src/lxc_controller.c, src/lxc_driver.c:
  Obtain a driver cgroup at startup and use that instead of
  re-creating everytime.
* src/util.c, src/util.h, src/libvirt_private.syms: Add a
  virGetUserName() helper
src/cgroup.c
src/cgroup.h
src/libvirt_private.syms
src/lxc_conf.h
src/lxc_controller.c
src/lxc_driver.c
src/util.c
src/util.h