From nobody Thu Mar 28 16:47:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1572879378; cv=none; d=zoho.com; s=zohoarc; b=X5FOnIJqz4h+wfDSVrVesj60ymCnvg6sAlYDMHlLYEbIva3qvi/iqfSBXBen31Lnt6N+OlS9m0TJZ46nyf0J4NEYoMTPP/ca98el70bUEUpogPHreZ66d0YQaqlO/OUlUaeEBR8s/6QJb35rBH8nmi3D15xZTXCxQrUw4JYJMHk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1572879378; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=CeiJITpziakDrDLvSm4WgCff9XxttR790AxKYTGdxeo=; b=VzeBpG+8yWW/K7GFEKp05uttO+aknVrHcc891BVPadBjRRb1TzKZ4xQ/feCpHyCXGOXwXTfEP7pua07W0YIK7CxZw3i6jC8xX3Cix39xtdMaKz8kgfnwTrtTc5Etl8kEPsWB8wC1E1K3fDzaRInJKc3SvDvxccFdxW5NwwgtjQM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1572879378329764.4733430666191; Mon, 4 Nov 2019 06:56:18 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-399-rGHXvEAYPAmOlgXbVDDoUA-1; Mon, 04 Nov 2019 09:56:16 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5B2B5477; Mon, 4 Nov 2019 14:56:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2EDE75C28C; Mon, 4 Nov 2019 14:56:11 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id D72314BB65; Mon, 4 Nov 2019 14:56:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xA4Eu9TW020434 for ; Mon, 4 Nov 2019 09:56:09 -0500 Received: by smtp.corp.redhat.com (Postfix) id 8EAEF1001E91; Mon, 4 Nov 2019 14:56:09 +0000 (UTC) Received: from mx1.redhat.com (ext-mx24.extmail.prod.ext.phx2.redhat.com [10.5.110.65]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 211BA1001B34 for ; Mon, 4 Nov 2019 14:56:06 +0000 (UTC) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E0EE101CF4A for ; Mon, 4 Nov 2019 14:56:05 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id 8so9377282wmo.0 for ; Mon, 04 Nov 2019 06:56:05 -0800 (PST) Received: from unfall.home (115.201.218.87.dynamic.jazztel.es. [87.218.201.115]) by smtp.gmail.com with ESMTPSA id b3sm10009308wmj.44.2019.11.04.06.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 06:56:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572879377; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=CeiJITpziakDrDLvSm4WgCff9XxttR790AxKYTGdxeo=; b=RQqtsEp8JuJOm3ZcDu6028fO9EitLZsuQ9PzOaDEVcsrKBs1MC0YnlDjKuV1jhei3yHwm/ tkZIHjoh0w8PZCYecqLcCU7gv1gz4ERf5MuAOLsrQ2odycvRx2nXce0F7AESa0oS/SbVdH +38354OjIYc0qzhpfB3oC8TS3JrYwag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7HE4UVOPdkmsqT0lqDFvMpWcdknSJ+cGbWlHSMNHEHM=; b=kMVF9zZKSbLpydFin6M3q+YR/NVLEvw2Ii3WifEx8C/7+UsrqUFIuabPHvompE0+os KWucpdrwzMnNWv5/JFFPA5eiE0wjVxak1RB3lkm3EMQeRO2QdzIHT2+R+QAtZLk4gNJZ HGvFNztL9HWjHWDem8AKGXxc7c/zARbPS0cj9HD6rWz27kh0hIa7py0o/YqT9l/meJH7 eJufDW7/2RqKt3zodehAo3JrhOTP48zPFUXGLIhR9VhnsnHgi2Ok5ooE2JZDeRaXAp+d PVHafh0CvwRuc+SFCtqqVe07lQQwMOAX++HanTOsGwVHN+wYjhEVanVs5b7Rg5f98iED lTDg== X-Gm-Message-State: APjAAAV77NEJfpbOwHlN/n1LRhRsByzr2Nt4NPAYmwl1rkT0niV/cxSF GODF4Y51cItFRBN/ZJ2figiwRciIOJk= X-Google-Smtp-Source: APXvYqz/GKeZgcmWXVWdUp8kH7VKHeXYGUrdswkBvt/JYjG6QZE3JJL0o9HRtYnk3VNMOqfXkSDVBQ== X-Received: by 2002:a1c:a404:: with SMTP id n4mr19693479wme.135.1572879363785; Mon, 04 Nov 2019 06:56:03 -0800 (PST) From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= To: libvir-list@redhat.com Date: Mon, 4 Nov 2019 15:55:22 +0100 Message-Id: <20191104145525.28805-2-rosen644835@gmail.com> In-Reply-To: <20191104145525.28805-1-rosen644835@gmail.com> References: <20191104145525.28805-1-rosen644835@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.65]); Mon, 04 Nov 2019 14:56:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.65]); Mon, 04 Nov 2019 14:56:05 +0000 (UTC) for IP:'209.85.128.66' DOMAIN:'mail-wm1-f66.google.com' HELO:'mail-wm1-f66.google.com' FROM:'rosen644835@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.15 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.128.66 mail-wm1-f66.google.com 209.85.128.66 mail-wm1-f66.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.65 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= Subject: [libvirt] [PATCH 1/2] doc: cgroups: Remove unwanted references to systemd X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: rGHXvEAYPAmOlgXbVDDoUA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) The non-systemd configurations do not create system neither user control groups. The title of the diagram referenced systemd too. Signed-off-by: Miguel =C3=81ngel Arruga Vivas Reviewed-by: Michal Privoznik --- docs/cgroups.html.in | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/docs/cgroups.html.in b/docs/cgroups.html.in index 081ba2eae1..78dede1bba 100644 --- a/docs/cgroups.html.in +++ b/docs/cgroups.html.in @@ -155,24 +155,17 @@ $ROOT named $VMNAME.libvirt-{qemu,lxc}. Each consumer is asso= ciated with exactly one partition, which also have a corresponding cgroup u= sually named $PARTNAME.partition. The exceptions to this namin= g rule - are the three top level default partitions, named /system (for - system services), /user (for user login sessions) and - /machine (for virtual machines and containers). By defa= ult - every consumer will of course be associated with the /machine<= /code> - partition. + is the top level default partition for virtual machines and containe= rs + /machine.

=20

- Given this, a possible systemd cgroups layout involving 3 qemu guest= s, + Given this, a possible non-systemd cgroups layout involving 3 qemu g= uests, 3 lxc containers and 2 custom child slices, would be:

=20
 $ROOT
-  |
-  +- system
-  |   |
-  |   +- libvirtd.service
   |
   +- machine
       |
--=20
2.23.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Thu Mar 28 16:47:04 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.120
 as permitted sender) client-ip=205.139.110.120;
 envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
	dkim=pass;
	spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 as
 permitted sender)  smtp.mailfrom=libvir-list-bounces@redhat.com;
	dmarc=fail(p=none dis=none)  header.from=gmail.com
ARC-Seal: i=1; a=rsa-sha256; t=1572879389; cv=none;
	d=zoho.com; s=zohoarc;
	b=XoeG5YzKdYptZ2oWrsjGRichDo1uPLR0C1jmQKoZxnHYCe8ubktENskn7fXG9yoIl4r8NfcZbGM1c4UzZfkvVtGG+xn34vYPx8GJdlAywisxTN+dRDgyszpbFLa6OyAPMcJ+2ZFHReGd9DYJ8X3tmhWbjjZ/lDXyGOlNTLk/Ro0=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc;
	t=1572879389;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
	bh=DYg0fckiF6AYsGtfmkNllCaZLLUr9J8cq755uqEXAVk=;
	b=T/j/43rlmVMN4qZLxS7ou+BnsTPE+NQxEz4S5Tnqx8B8bt55UGkClYu4WCF/aDOWPht3YSvjvF6kOmj88IedmKsZu3fDkFsoF4QI7DxCjo/QwBGLmwphXHZvaFUa0qrsklFcrPr9Qh11QI8XuvdlKDApVqT+TmplpXtGHriuHNY=
ARC-Authentication-Results: i=1; mx.zoho.com;
	dkim=pass;
	spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 as
 permitted sender)  smtp.mailfrom=libvir-list-bounces@redhat.com;
	dmarc=fail header.from= (p=none dis=none)
 header.from=
Return-Path: 
Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com
 [205.139.110.120]) by mx.zohomail.com
	with SMTPS id 1572879389132565.4146006969265;
 Mon, 4 Nov 2019 06:56:29 -0800 (PST)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
 [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
 us-mta-282-GhbknVMdN82Q8VthwgVoMw-1; Mon, 04 Nov 2019 09:56:26 -0500
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com
 [10.5.11.15])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 580591800DFF;
	Mon,  4 Nov 2019 14:56:20 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
 (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20])
	by smtp.corp.redhat.com (Postfix) with ESMTPS id 2C1205D6D2;
	Mon,  4 Nov 2019 14:56:20 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
 (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
	by colo-mx.corp.redhat.com (Postfix) with ESMTP id D816E1803C38;
	Mon,  4 Nov 2019 14:56:19 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com
	[10.5.11.23])
	by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id xA4EuCMv020445 for ;
	Mon, 4 Nov 2019 09:56:12 -0500
Received: by smtp.corp.redhat.com (Postfix)
	id 3330E3CC8; Mon,  4 Nov 2019 14:56:12 +0000 (UTC)
Received: from mx1.redhat.com (ext-mx27.extmail.prod.ext.phx2.redhat.com
	[10.5.110.68])
	by smtp.corp.redhat.com (Postfix) with ESMTPS id 2DB6A19C4F
	for ; Mon,  4 Nov 2019 14:56:09 +0000 (UTC)
Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com
	[209.85.128.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by mx1.redhat.com (Postfix) with ESMTPS id 417F8878E46
	for ; Mon,  4 Nov 2019 14:56:08 +0000 (UTC)
Received: by mail-wm1-f52.google.com with SMTP id m17so7729653wmi.5
	for ; Mon, 04 Nov 2019 06:56:08 -0800 (PST)
Received: from unfall.home (115.201.218.87.dynamic.jazztel.es.
	[87.218.201.115]) by smtp.gmail.com with ESMTPSA id
	b3sm10009308wmj.44.2019.11.04.06.56.05
	(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
	Mon, 04 Nov 2019 06:56:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
	s=mimecast20190719; t=1572879388;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post;
	bh=DYg0fckiF6AYsGtfmkNllCaZLLUr9J8cq755uqEXAVk=;
	b=cCQLPjXoFd8Y16SOZifTNbEKh2dDOVlhyBGHBSdW5t9Nb+Zr4aQTgHim8sntt6awTwQlqt
	G/SiaLuIucYS7Qdmga2ge43Lud6miif2Dlu1TAhJMj0ffGvBtFHCTSeDHxdYzE8Y460Iuj
	Qti8l4ki4aX/1vjqXMk6M5eNy0l3aaA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
	:references:mime-version:content-transfer-encoding;
	bh=TXJNqZcJt3Qmo4WG8hDLT+aveOqBbcl6riDNhWH3o/A=;
	b=nSvn7gxKcIidTYUjEEizISdhM7swlSpjBDkJgbHjNDQsFRxyqJk9w/g4KmbBgA0f37
	wPhCfpoYrrlmJZLE4ToPwWAt7SHdA+OZuFqUu1qfKHXMheYlxK6ZO6JC0meEprIO9DDT
	7VMFYW5T9GWMuxJ6OHMYOdum70hrEZDevyGVH0Pt4PcDmPq/Tkslj2bNqXekIsxkIrhe
	Ajo8686xYwFaKts78A2raRxvbNJWVdOUMBT0qNLaJbrhyF9YsKhDd9JSjGhtMQ6yG/d+
	HsPjxjGvW0A7RZbEWVgI/bWuqBWr+3Wrn592bXJ8RLo2sTLOWuBL9ZzmhjleO0y4qeW/
	FgeA==
X-Gm-Message-State: APjAAAUNwpmrL5Oq0wHNnoyhR6jJbe6KjixSr8xC9vTLQNPsPzN0pM66
	D1GApwZVZbQ+5dZHh6Ka58sgtz6Ijic=
X-Google-Smtp-Source: 
 APXvYqxFP9Xr90aV2DT6GB4Jn4P1Y/pDcdbWQyYOYBufgyuQgRxKjlMpWToHRe7tXoHKww+k2x9MPw==
X-Received: by 2002:a1c:2846:: with SMTP id o67mr23380277wmo.7.1572879366642;
	Mon, 04 Nov 2019 06:56:06 -0800 (PST)
From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= 
To: libvir-list@redhat.com
Date: Mon,  4 Nov 2019 15:55:23 +0100
Message-Id: <20191104145525.28805-3-rosen644835@gmail.com>
In-Reply-To: <20191104145525.28805-1-rosen644835@gmail.com>
References: <20191104145525.28805-1-rosen644835@gmail.com>
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2
	(mx1.redhat.com [10.5.110.68]);
	Mon, 04 Nov 2019 14:56:08 +0000 (UTC)
X-Greylist: inspected by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]);
	Mon, 04 Nov 2019 14:56:08 +0000 (UTC) for IP:'209.85.128.52'
	DOMAIN:'mail-wm1-f52.google.com' HELO:'mail-wm1-f52.google.com'
	FROM:'rosen644835@gmail.com' RCPT:''
X-RedHat-Spam-Score: 0.15  (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU,
	FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,
	SPF_PASS) 209.85.128.52 mail-wm1-f52.google.com 209.85.128.52
	mail-wm1-f52.google.com 
X-Scanned-By: MIMEDefang 2.84 on 10.5.110.68
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23
X-loop: libvir-list@redhat.com
Cc: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= 
Subject: [libvirt] [PATCH 2/2] vircgroup: Ensure /machine group is
	associated with its parent
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
	
List-Unsubscribe: ,
	
List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,
	
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-MC-Unique: GhbknVMdN82Q8VthwgVoMw-1
X-Mimecast-Spam-Score: 0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)

Call first virCgroupNew on the parent group virCgroupNewPartition if
it is available on before the creation of the child group.  This
ensures that the creation of a first level group on the unified
architecture, as the check at virCgroupV2ParseControllersFile as the
parent file is there.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=3D1760233
Signed-off-by: Miguel =C3=81ngel Arruga Vivas 
Reviewed-by: Michal Privoznik 
---
 src/util/vircgroup.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index b46f20abfd..33c61f2d45 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -855,9 +855,6 @@ virCgroupNewPartition(const char *path,
     if (virCgroupSetPartitionSuffix(path, &newPath) < 0)
         goto cleanup;
=20
-    if (virCgroupNew(-1, newPath, NULL, controllers, group) < 0)
-        goto cleanup;
-
     if (STRNEQ(newPath, "/")) {
         char *tmp;
         parentPath =3D g_strdup(newPath);
@@ -868,7 +865,12 @@ virCgroupNewPartition(const char *path,
=20
         if (virCgroupNew(-1, parentPath, NULL, controllers, &parent) < 0)
             goto cleanup;
+    }
=20
+    if (virCgroupNew(-1, newPath, parent, controllers, group) < 0)
+        goto cleanup;
+
+    if (parent) {
         if (virCgroupMakeGroup(parent, *group, create, VIR_CGROUP_NONE) < =
0)
             goto cleanup;
     }
--=20
2.23.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list