|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v1] x86/microcode: always collect_cpu_info() during boot
>>> On 25.03.19 at 12:12, <sergey.dyasli@xxxxxxxxxx> wrote:
> Currently cpu_sig struct is not updated during boot when either:
>
> 1. ucode_scan is set to false (e.g. no "ucode=scan" in cmdline)
> 2. initrd does not contain a microcode blob
What about "ucode=<number>"?
> These will result in cpu_sig.rev being 0 which affects APIC's
> check_deadline_errata() and retpoline_safe() functions.
>
> Fix this by getting ucode revision early during boot and SMP bring up.
Can't you then drop the call from microcode_update_cpu()?
> @@ -413,6 +421,8 @@ int __init early_microcode_update_cpu(bool start_update)
>
> int __init early_microcode_init(void)
> {
> + unsigned int cpu = smp_processor_id();
> + struct ucode_cpu_info *uci = &per_cpu(ucode_cpu_info, cpu);
Would you mind moving these declarations ...
> @@ -425,6 +435,8 @@ int __init early_microcode_init(void)
>
> if ( microcode_ops )
> {
> + microcode_ops->collect_cpu_info(cpu, &uci->cpu_sig);
... into this scope?
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |