From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Khorenko Date: Fri, 21 Aug 2026 18:42:22 +0200 Subject: [Devel] [PATCH RHEL10 COMMIT] ve: compile the CPUID override propagation only on x86 In-Reply-To: <20260821163718.187766-22-khorenko@virtuozzo.com> Message-ID: <202608211642.67LGgMCd667899@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 18ec50574c3fdbc95e29267ed062130e14d9e0ad Author: Eva Kurchatova Date: Fri Aug 21 18:37:07 2026 +0200 ve: compile the CPUID override propagation only on x86 ve_setup_task() arms TIF_CPUID_OVERRIDE for tasks of a Container whenever /proc/vz/cpuid_override is in use. Both cpuid_override_on() and the thread flag are x86-only, so generic kernel/ve/ve.c does not compile on an architecture without them - User Mode Linux, for one: kernel/ve/ve.c: error: implicit declaration of function 'cpuid_override_on' kernel/ve/ve.c: error: 'TIF_CPUID_OVERRIDE' undeclared Guard the propagation with CONFIG_X86. There is no CPUID to fake elsewhere, so nothing is lost. Feature: x86: cpu pools (cpuid override) https://virtuozzo.atlassian.net/browse/VSTOR-134732 Signed-off-by: Eva Kurchatova Signed-off-by: Konstantin Khorenko --- kernel/ve/ve.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c index 3a9f3841fe55b..0f0e1a424953b 100644 --- a/kernel/ve/ve.c +++ b/kernel/ve/ve.c @@ -1852,8 +1852,10 @@ void ve_setup_task(struct task_struct *task, struct ve_struct *ve) ve_set_task_start_time(ve, task); +#ifdef CONFIG_X86 if (cpuid_override_on()) set_tsk_thread_flag(task, TIF_CPUID_OVERRIDE); +#endif } EXPORT_SYMBOL(ve_setup_task);