summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaoyao Li <xiaoyao.li@intel.com>2026-05-12 23:27:54 +0800
committerBorislav Petkov (AMD) <bp@alien8.de>2026-05-12 18:28:04 +0200
commit1458ade7469d7447499d4651abfaee9d4374857f (patch)
treee7f72c2e8fc68959681c031f424222bd180668c7
parent00e05495c5727b0f7027ad6a2e235da62357d957 (diff)
downloadlinux-stable-1458ade7469d7447499d4651abfaee9d4374857f.tar.gz
linux-stable-1458ade7469d7447499d4651abfaee9d4374857f.zip
x86/microcode: Fix comment in microcode_loader_disabled()
The code in microcode_loader_disabled() actually checks for the bit 31 in CPUID[1]:ECX being set. Update the comment to match the code. No functional change intended. Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/20260512152754.671760-1-xiaoyao.li@intel.com
-rw-r--r--arch/x86/kernel/cpu/microcode/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c
index 651202e6fefb..68a1a893246c 100644
--- a/arch/x86/kernel/cpu/microcode/core.c
+++ b/arch/x86/kernel/cpu/microcode/core.c
@@ -126,7 +126,7 @@ bool __init microcode_loader_disabled(void)
}
/*
- * 2) Bit 31 in CPUID[1]:ECX is clear
+ * 2) Bit 31 in CPUID[1]:ECX is set
* The bit is reserved for hypervisor use. This is still not
* completely accurate as XEN PV guests don't see that CPUID bit
* set, but that's good enough as they don't land on the BSP