Re: [PATCH for 4.16 07/10] x86: Introduce sync_core_before_usermode (v2)

2018-01-16 Thread Thomas Gleixner
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_usermod

[PATCH for 4.16 07/10] x86: Introduce sync_core_before_usermode (v2)

2018-01-15 Thread Mathieu Desnoyers
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_