The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] x86/microcode: Fix comment in microcode_loader_disabled()
@ 2026-05-12 15:27 Xiaoyao Li
  2026-05-12 16:39 ` [tip: x86/microcode] " tip-bot2 for Xiaoyao Li
  2026-05-12 23:23 ` [PATCH] " Andrew Cooper
  0 siblings, 2 replies; 3+ messages in thread
From: Xiaoyao Li @ 2026-05-12 15:27 UTC (permalink / raw)
  To: Borislav Petkov, Thomas Gleixner, Ingo Molnar, Dave Hansen
  Cc: H. Peter Anvin, x86, linux-kernel, xiaoyao.li

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>
---
 arch/x86/kernel/cpu/microcode/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

base-commit: 5d6919055dec134de3c40167a490f33c74c12581
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-12 23:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 15:27 [PATCH] x86/microcode: Fix comment in microcode_loader_disabled() Xiaoyao Li
2026-05-12 16:39 ` [tip: x86/microcode] " tip-bot2 for Xiaoyao Li
2026-05-12 23:23 ` [PATCH] " Andrew Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox