Re: [PATCH v2 3/3] x86/ucode: load microcode earlier on boot CPU

2022-12-20 Thread Andrew Cooper
On 20/12/2022 3:18 pm, Jan Beulich wrote: > On 20.12.2022 15:50, Andrew Cooper wrote: >> On 19/12/2022 2:45 pm, Sergey Dyasli wrote: >>> diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c >>> index 6bb5bc7c84..2d7c815e0a 100644 >>> --- a/xen/arch/x86/setup.c >>> +++ b/xen/arch/x86/setup.c >>>

Re: [PATCH v2 3/3] x86/ucode: load microcode earlier on boot CPU

2022-12-20 Thread Jan Beulich
On 20.12.2022 15:50, Andrew Cooper wrote: > On 19/12/2022 2:45 pm, Sergey Dyasli wrote: >> diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c >> index 6bb5bc7c84..2d7c815e0a 100644 >> --- a/xen/arch/x86/setup.c >> +++ b/xen/arch/x86/setup.c >> relocated = true; >> @@ -1762,11 +1768,9

Re: [PATCH v2 3/3] x86/ucode: load microcode earlier on boot CPU

2022-12-20 Thread Andrew Cooper
On 19/12/2022 2:45 pm, Sergey Dyasli wrote: > diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c > index 6bb5bc7c84..2d7c815e0a 100644 > --- a/xen/arch/x86/setup.c > +++ b/xen/arch/x86/setup.c > relocated = true; > @@ -1762,11 +1768,9 @@ void __init noreturn __start_xen(unsigned long

Re: [PATCH v2 3/3] x86/ucode: load microcode earlier on boot CPU

2022-12-20 Thread Jan Beulich
On 19.12.2022 15:45, Sergey Dyasli wrote: > Call early_microcode_init() straight after multiboot modules become > accessible. Modify it to load the ucode directly from the blob bypassing > populating microcode_cache because xmalloc is still not available at > that point during Xen boot. > > Introd

Re: [PATCH v2 3/3] x86/ucode: load microcode earlier on boot CPU

2022-12-19 Thread Julien Grall
On 19/12/2022 17:33, Andrew Cooper wrote: On 19/12/2022 4:57 pm, Julien Grall wrote: Hi Sergey, On 19/12/2022 14:45, Sergey Dyasli wrote: Call early_microcode_init() straight after multiboot modules become accessible. Modify it to load the ucode directly from the blob bypassing populating m

Re: [PATCH v2 3/3] x86/ucode: load microcode earlier on boot CPU

2022-12-19 Thread Andrew Cooper
On 19/12/2022 4:57 pm, Julien Grall wrote: > Hi Sergey, > > On 19/12/2022 14:45, Sergey Dyasli wrote: >> Call early_microcode_init() straight after multiboot modules become >> accessible. Modify it to load the ucode directly from the blob bypassing >> populating microcode_cache because xmalloc is s

Re: [PATCH v2 3/3] x86/ucode: load microcode earlier on boot CPU

2022-12-19 Thread Julien Grall
Hi Sergey, On 19/12/2022 14:45, Sergey Dyasli wrote: Call early_microcode_init() straight after multiboot modules become accessible. Modify it to load the ucode directly from the blob bypassing populating microcode_cache because xmalloc is still not available at that point during Xen boot. Intr

[PATCH v2 3/3] x86/ucode: load microcode earlier on boot CPU

2022-12-19 Thread Sergey Dyasli
Call early_microcode_init() straight after multiboot modules become accessible. Modify it to load the ucode directly from the blob bypassing populating microcode_cache because xmalloc is still not available at that point during Xen boot. Introduce early_microcode_init_cache() for populating microc