[Devel] [PATCH RHEL10 COMMIT] ve: compile the CPUID override propagation only on x86

Konstantin Khorenko khorenko at virtuozzo.com
Fri Aug 21 19:42:22 MSK 2026


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 <eva.kurchatova at virtuozzo.com>
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 <eva.kurchatova at virtuozzo.com>
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 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);
 


More information about the Devel mailing list