• D
    Setup LXC cgroups in two phases · 1760258c
    Daniel P. Berrange 提交于
    Currently the LXC controller creates the cgroup, configures the
    resources and adds the task all in one go. This is not sufficiently
    flexible for the forthcoming NBD integration. We need to make sure
    the NBD process gets into the right cgroup immediately, but we can
    not have limits (in particular the device ACL) applied at the point
    where we start qemu-nbd. So create a virLXCCgroupCreate method
    which creates the cgroup and adds the current task to be called
    early, and leave virLXCCgroupSetup to only do resource config.
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    1760258c
lxc_cgroup.c 15.5 KB