Re: [Xen-devel] [PATCH v2] x86/microcode: Synchronize late microcode loading

2018-05-02 Thread Jan Beulich
>>> On 01.05.18 at 10:15, wrote: > On Mon, Apr 30, 2018 at 09:25:26AM -0600, Jan Beulich wrote: > On 25.04.18 at 13:46, wrote: >>> +static int do_microcode_update(void *_info) >>> +{ >>> +struct microcode_info *info = _info; >>> +unsigned int

Re: [Xen-devel] [PATCH v2] x86/microcode: Synchronize late microcode loading

2018-05-01 Thread Chao Gao
On Mon, Apr 30, 2018 at 09:25:26AM -0600, Jan Beulich wrote: On 25.04.18 at 13:46, wrote: >> @@ -281,24 +288,56 @@ static int microcode_update_cpu(const void *buf, >> size_t size) >> return err; >> } >> >> -static long do_microcode_update(void *_info) >> +/* Wait

Re: [Xen-devel] [PATCH v2] x86/microcode: Synchronize late microcode loading

2018-04-30 Thread Jan Beulich
>>> On 25.04.18 at 13:46, wrote: > @@ -281,24 +288,56 @@ static int microcode_update_cpu(const void *buf, size_t > size) > return err; > } > > -static long do_microcode_update(void *_info) > +/* Wait for all CPUs to rendezvous with a timeout (us) */ > +static int

[Xen-devel] [PATCH v2] x86/microcode: Synchronize late microcode loading

2018-04-25 Thread Chao Gao
From: Gao Chao This patch ports microcode improvement patches from linux kernel. Before you read any further: the early loading method is still the preferred one and you should always do that. The following patch is improving the late loading mechanism for long running jobs