[Devel] [PATCH VZ10 0/9] ve/cgroup-v2: support cgroup-v2 in VE
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Fri Dec 5 07:50:00 MSK 2025
Second part of changes for enabling cgroup-v2:
- Enable cgroup-v2 files
- Hide cgroup files per controller
- Move ve cgroup attach operations to namespace join path
- Allow nested ve cgroup in cgroup-v2
https://virtuozzo.atlassian.net/browse/VSTOR-119803
https://virtuozzo.atlassian.net/browse/VSTOR-119804
https://virtuozzo.atlassian.net/browse/VSTOR-119941
https://virtuozzo.atlassian.net/browse/VSTOR-104639
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Pavel Tikhomirov (9):
cgroup-v2: Add a new API to hide cgroup files per controller
ve: Enable files on cgroup-v2
ve/cgroup-v2: Allow writing to some files in the root of cgroup
namespace
ve_namespace: Don't allow to share thread group across VE boundaries
ve_namespace: Move cgroup ve_attach() operations to namespace join
path
ve_namespace: Block setns untill VE is running
ve: Always allow to attach to ve cgroup
ve/cgroup-v2: Allow nested ve cgroup directories
ve/cgroup-v2: Don't hide default cgroup when ve controller is enabled
on it
fs/sysfs/ve.c | 2 +-
include/linux/cgroup-defs.h | 1 +
include/linux/cgroup.h | 1 +
include/linux/ve.h | 4 ++
kernel/cgroup/cgroup.c | 136 +++++++++++++++++++++++++++++++++++-
kernel/fork.c | 8 +++
kernel/ve/ve.c | 131 ++++++++--------------------------
kernel/ve/ve_namespace.c | 12 ++++
8 files changed, 190 insertions(+), 105 deletions(-)
--
2.52.0
More information about the Devel
mailing list