* [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(µcode_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(µcode_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
* Re: [PATCH] x86/ucode: don't crash during AP bringup on non-Intel, non-AMD CPUs
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
0 siblings, 1 reply; 4+ messages in thread
From: Keir Fraser @ 2012-08-16 15:28 UTC (permalink / raw)
To: Jan Beulich, xen-devel
On 16/08/2012 16:22, "Jan Beulich" <JBeulich@suse.com> wrote:
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Do we support any such processors? Newer VIA processors maybe?
Anyhow,
Acked-by: Keir Fraser <keir@xen.org>
> --- 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(µcode_mutex);
>
> err = microcode_ops->collect_cpu_info(cpu, &uci->cpu_sig);
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86/ucode: don't crash during AP bringup on non-Intel, non-AMD CPUs
2012-08-16 15:28 ` Keir Fraser
@ 2012-08-16 15:58 ` Jan Beulich
2012-08-16 16:25 ` Keir Fraser
0 siblings, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2012-08-16 15:58 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
>>> On 16.08.12 at 17:28, Keir Fraser <keir@xen.org> wrote:
> On 16/08/2012 16:22, "Jan Beulich" <JBeulich@suse.com> wrote:
>
>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86/ucode: don't crash during AP bringup on non-Intel, non-AMD CPUs
2012-08-16 15:58 ` Jan Beulich
@ 2012-08-16 16:25 ` Keir Fraser
0 siblings, 0 replies; 4+ messages in thread
From: Keir Fraser @ 2012-08-16 16:25 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
On 16/08/2012 16:58, "Jan Beulich" <JBeulich@suse.com> wrote:
>>>> On 16.08.12 at 17:28, Keir Fraser <keir@xen.org> wrote:
>> On 16/08/2012 16:22, "Jan Beulich" <JBeulich@suse.com> wrote:
>>
>>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>>
>> 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
> Jan
>
^ 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).