xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/ucode: don't crash during AP bringup on non-Intel, non-AMD CPUs
@ 2012-08-16 15:22 Jan Beulich
  2012-08-16 15:28 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2012-08-16 15:22 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/x86/microcode.c
+++ b/xen/arch/x86/microcode.c
@@ -109,6 +109,9 @@ int microcode_resume_cpu(int cpu)
     struct cpu_signature nsig;
     unsigned int cpu2;
 
+    if ( !microcode_ops )
+        return 0;
+
     spin_lock(&microcode_mutex);
 
     err = microcode_ops->collect_cpu_info(cpu, &uci->cpu_sig);




[-- Attachment #2: x86-ucode-resume-check.patch --]
[-- Type: text/plain, Size: 455 bytes --]

x86/ucode: don't crash during AP bringup on non-Intel, non-AMD CPUs

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/x86/microcode.c
+++ b/xen/arch/x86/microcode.c
@@ -109,6 +109,9 @@ int microcode_resume_cpu(int cpu)
     struct cpu_signature nsig;
     unsigned int cpu2;
 
+    if ( !microcode_ops )
+        return 0;
+
     spin_lock(&microcode_mutex);
 
     err = microcode_ops->collect_cpu_info(cpu, &uci->cpu_sig);

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2012-08-16 16:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-16 15:22 [PATCH] x86/ucode: don't crash during AP bringup on non-Intel, non-AMD CPUs Jan Beulich
2012-08-16 15:28 ` Keir Fraser
2012-08-16 15:58   ` Jan Beulich
2012-08-16 16:25     ` Keir Fraser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).