Re: [PATCH for 4.16 07/10] x86: Introduce sync_core_before_usermode (v2)
From: Thomas Gleixner
Date: Tue Jan 16 2018 - 13:28:48 EST
On Mon, 15 Jan 2018, Mathieu Desnoyers wrote:
> Introduce an architecture function that ensures the current CPU
> issues a core serializing instruction before returning to usermode.
>
> This is needed for the membarrier "sync_core" command.
>
> Architectures defining the sync_core_before_usermode() static inline
> need to select ARCH_HAS_SYNC_CORE_BEFORE_USERMODE.
Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>