[Devel] [PATCH RHEL10 COMMIT] x86: make /proc/vz/cpuid_override a permanent proc entry

Konstantin Khorenko khorenko at virtuozzo.com
Fri Sep 5 19:28:10 MSK 2025


The commit is pushed to "branch-rh10-6.12.0-55.13.1.2.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.2.3.vz10
------>
commit 68b043f3994d17337460c1b651bc93e28f4b644a
Author: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Date:   Thu Sep 4 11:11:24 2025 +0800

    x86: make /proc/vz/cpuid_override a permanent proc entry
    
    If it was created (requires cpu support), proc file is never removed, so
    we can make it "permanent" to slightly speed up its open and close.
    
    https://virtuozzo.atlassian.net/browse/VSTOR-106081
    Fixes: a874d92ac61b3 ("arch/x86: introduce cpuid override")
    Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
    
    Feature: x86: cpu pools (cpuid override)
---
 arch/x86/kernel/cpuid_fault.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/cpuid_fault.c b/arch/x86/kernel/cpuid_fault.c
index 9e0ea7a9d3420..117c971f531a4 100644
--- a/arch/x86/kernel/cpuid_fault.c
+++ b/arch/x86/kernel/cpuid_fault.c
@@ -258,6 +258,7 @@ static int cpuid_override_seq_open(struct inode *inode, struct file *file)
 }
 
 static struct proc_ops proc_cpuid_override_ops = {
+	.proc_flags   = PROC_ENTRY_PERMANENT,
 	.proc_open    = cpuid_override_seq_open,
 	.proc_read    = seq_read,
 	.proc_lseek   = seq_lseek,


More information about the Devel mailing list