Re: [RFC PATCH 40/56] x86/alternative: Use sync_core_nmi_safe()

Peter Zijlstra
2025-10-16T18:52:54Z

On Thu, Oct 16, 2025 at 03:34:14PM +0000, Kaplan, David wrote:

> I will note that on AMD, MFENCE has the required serializing
> properties (like SERIALIZE). On AMD, we could use MFENCE in
> sync_core() which is probably faster that iret_to_self(). But
> again...do we really care.

About faster, no. But MFENCE has the benefit of not causing VMEXITs and
also not being IRET, so I'm not opposed to you using that as an AMD
version of SERIALIZE for the time being.