[libvirt] [PATCH v2 2/9] vircgroup: fix bug in virCgroupEnableMissingControllers

Ján Tomko jtomko at redhat.com
Mon Sep 24 14:18:27 UTC 2018


On Thu, Sep 20, 2018 at 10:54:31AM +0200, Pavel Hrdina wrote:
>If we are on host with systemd we need to build cgroup hierarchy
>ourselves for controllers that are not managed by systemd.
>
>As a starting parent we need to force root group because
>virCgroupMakeGroup() takes that parent in order to inherit values
>for cpuset controller.
>
>By default cpuset controller is managed by systemd so we will never
>hit the issue but for v2 cgroups we need to use parent cgroup every
>time.
>
>Reviewed-by: Fabiano Fidêncio <fidencio at redhat.com>
>Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
>---
> src/util/vircgroup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180924/92dcb3c0/attachment-0001.sig>


More information about the libvir-list mailing list