]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/cpufeatures: Correct LKGS feature flag description
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 15 Oct 2025 10:35:48 +0000 (12:35 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 4 Nov 2025 22:09:34 +0000 (23:09 +0100)
Quotation marks in cpufeatures.h comments are special and when the
comment begins with a quoted string, that string lands in /proc/cpuinfo,
turning it into a user-visible one.

The LKGS comment doesn't begin with a quoted string but just in case
drop the quoted "kernel" in there to avoid confusion. And while at it,
simply change the description into what the LKGS instruction does for
more clarity.

No functional changes.

Reviewed-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20251015103548.10194-1-bp@kernel.org
arch/x86/include/asm/cpufeatures.h
tools/arch/x86/include/asm/cpufeatures.h

index 4091a776e37aaed67ca93b0a0cd23cc25dbc33d4..245cf6b3ec57d4bbf97f54560541eb1f94864498 100644 (file)
 #define X86_FEATURE_FSRS               (12*32+11) /* Fast short REP STOSB */
 #define X86_FEATURE_FSRC               (12*32+12) /* Fast short REP {CMPSB,SCASB} */
 #define X86_FEATURE_FRED               (12*32+17) /* "fred" Flexible Return and Event Delivery */
-#define X86_FEATURE_LKGS               (12*32+18) /* Load "kernel" (userspace) GS */
+#define X86_FEATURE_LKGS               (12*32+18) /* Like MOV_GS except MSR_KERNEL_GS_BASE = GS.base */
 #define X86_FEATURE_WRMSRNS            (12*32+19) /* Non-serializing WRMSR */
 #define X86_FEATURE_AMX_FP16           (12*32+21) /* AMX fp16 Support */
 #define X86_FEATURE_AVX_IFMA            (12*32+23) /* Support for VPMADD52[H,L]UQ */
index 06fc0479a23f01e5a65526fc185713294013f793..f61802f29d5f123c6138dccfc40008e2b4602d58 100644 (file)
 #define X86_FEATURE_FSRS               (12*32+11) /* Fast short REP STOSB */
 #define X86_FEATURE_FSRC               (12*32+12) /* Fast short REP {CMPSB,SCASB} */
 #define X86_FEATURE_FRED               (12*32+17) /* "fred" Flexible Return and Event Delivery */
-#define X86_FEATURE_LKGS               (12*32+18) /* Load "kernel" (userspace) GS */
+#define X86_FEATURE_LKGS               (12*32+18) /* Like MOV_GS except MSR_KERNEL_GS_BASE = GS.base */
 #define X86_FEATURE_WRMSRNS            (12*32+19) /* Non-serializing WRMSR */
 #define X86_FEATURE_AMX_FP16           (12*32+21) /* AMX fp16 Support */
 #define X86_FEATURE_AVX_IFMA            (12*32+23) /* Support for VPMADD52[H,L]UQ */