From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Khorenko Date: Fri, 21 Aug 2026 18:42:10 +0200 Subject: [Devel] [PATCH RHEL10 COMMIT] ve: add missing Kconfig selects for CONFIG_VE In-Reply-To: <20260821163718.187766-8-khorenko@virtuozzo.com> Message-ID: <202608211642.67LGgAFO666902@f0.sw.ru> List-Id: The commit is pushed to "branch-rh10-6.12.0-211.39.1.16.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git after rh10-6.12.0-211.39.1.16.6.vz10 ------> commit 1a95a49afb5a7965df39c48fa6b49142ae1e82fa Author: Eva Kurchatova Date: Fri Aug 21 18:36:53 2026 +0200 ve: add missing Kconfig selects for CONFIG_VE The select list of CONFIG_VE only ever named the namespaces and a few cgroup controllers, and got away with it because everything else it needs happened to be enabled by the RHEL and Virtuozzo x86 configs. It is not a property of the option itself, though: plain "make defconfig" already gives CONFIG_VE=y with CONFIG_MEMCG=n, and building for User Mode Linux (which we now want for KUnit) starts from yet another set of defaults. Name the dependencies explicitly: NET - NET_NS depends on it, so selecting NET_NS alone yields an unmet direct dependency; CGROUP_SCHED - the cpu cgroup is the per-Container task group: cgroup_mark_ve_roots(), the per-Container loadavg and the /proc/stat virtualization all need it; CGROUP_CPUACCT - per-Container cpu statistics are read from it; MEMCG, MEMCG_V1 - per-Container memory limits and the /proc/meminfo, /proc/vmstat and oom_score virtualization are all built on the memory controller, v1 included; POSIX_MQUEUE - part of the IPC environment a Container expects; SCHEDSTATS - kernel/ve/vzstat.c reads task->stats.wait_start, and all of struct sched_statistics sits under that option. Fixes: 82652f8a0749 ("ve: Add ve cgroup and ve_hook subsys") Feature: ve: ve generic structures https://virtuozzo.atlassian.net/browse/VSTOR-134732 Signed-off-by: Eva Kurchatova Signed-off-by: Konstantin Khorenko --- kernel/Kconfig.openvz | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/Kconfig.openvz b/kernel/Kconfig.openvz index 9358727c1afad..7494048425a54 100644 --- a/kernel/Kconfig.openvz +++ b/kernel/Kconfig.openvz @@ -14,12 +14,19 @@ config VE select PID_NS select IPC_NS select UTS_NS + select NET select NET_NS select USER_NS select CGROUPS + select CGROUP_SCHED + select CGROUP_CPUACCT + select MEMCG + select MEMCG_V1 select CGROUP_DEVICE select CGROUP_FREEZER select CGROUP_PERF if PERF_EVENTS + select POSIX_MQUEUE + select SCHEDSTATS help This option adds support of virtual Linux running on the original box with fully supported virtual network driver, tty subsystem and