Re: [EXTERNAL] [PATCH AUTOSEL 6.4 02/15] x86/smpboot: Implement a bit spinlock to protect the realmode stack

From: David Woodhouse
Date: Mon Jul 03 2023 - 05:19:33 EST


On Sun, 2023-07-02 at 15:40 -0400, Sasha Levin wrote:
> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>
> [ Upstream commit f6f1ae9128d2a080ecdd55f85e8a0ca3ed1d58eb ]
>
> Parallel AP bringup requires that the APs can run fully parallel through
> the early startup code including the real mode trampoline.
>
> To prepare for this implement a bit-spinlock to serialize access to the
> real mode stack so that parallel upcoming APs are not going to corrupt each
> others stack while going through the real mode startup code.

This is also preparation for the parallel CPU bringup and (again,
unless I'm missing something) doesn't need to be backported to stable.

Attachment: smime.p7s
Description: S/MIME cryptographic signature