On Tue, Jul 31, 2018 at 11:46:09AM +0000, Sironi, Filippo wrote:
There may be a chance of skipping this code, I think.
If the microcode is loaded on the hyperthread sibling of the boot cpu before being loaded on the boot cpu, the boot cpu will exit earlier from apply_microcode_intel() - in if (rev >= mc->hdr.rev) { ... }.
(This seems to be possible in apply_microcode_amd() as well.)
In my tree with the aforementioned change - Intel only - I also had the following patch:
Yap, good catch.