[libvirt] [PATCH v3 14/15] vircgroup: workaround devices in hybrid mode

Ján Tomko jtomko at redhat.com
Tue Jun 18 15:11:50 UTC 2019


On Thu, Apr 25, 2019 at 09:44:31AM +0200, Pavel Hrdina wrote:
>So the issue here is that you can end up with configuration where
>you have cgroup v1 and v2 enabled at the same time and the devices
>controllers is enabled for cgroup v1.
>
>In cgroup v2 there is no devices controller, the device access is
>controlled using BPF and since it is not a cgroup controller both
>of them can exists at the same time and both of them are applied while
>resolving access to devices.
>
>In order to avoid configuring both BPF and cgroup v1 devices we will
>use BPF if possible and otherwise fallback to cgroup v1 devices.
>
>Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
>---
> src/util/vircgroup.c        | 3 ++-
> src/util/vircgroupbackend.h | 3 ++-
> src/util/vircgroupv1.c      | 9 ++++++++-
> src/util/vircgroupv2.c      | 5 ++++-
> 4 files changed, 16 insertions(+), 4 deletions(-)
>

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: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190618/25053dd0/attachment-0001.sig>


More information about the libvir-list mailing list