Skip to contentSkip to conversation

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

PATCH In review Jan Beulich 3 participants 4 messages Aug 16, 2012

lore
Share & tools
lore
#0 lore raw

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

xen/arch/x86/microcode.c +3 -0
@@ -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);

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

xen/arch/x86/microcode.c +3 -0
@@ -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);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Jan Beulich

Do we support any such processors? Newer VIA processors maybe?

Anyhow,

Quoted 19 lines
xen/arch/x86/microcode.c +3 -0
@@ -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);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 6 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 1 line · Jan Beulich

Do we support any such processors? Newer VIA processors maybe?

Exactly those - they were kind enough to lend me a system. I'm having a patch queued for post-4.2 to enable VMX and a few other vendor specific things on them, but of course a prereq for testing this was that the system would boot at all under Xen.

Jan

#3 lore raw
Quoted 11 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 1 line · Jan Beulich

Do we support any such processors? Newer VIA processors maybe?

Exactly those - they were kind enough to lend me a system. I'm having a patch queued for post-4.2 to enable VMX and a few other vendor specific things on them, but of course a prereq for testing this was that the system would boot at all under Xen.

Very cool! :-)

-- Keir

Quoted 2 lines

Jan