From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: [PATCH for 4.16 07/10] x86: Introduce sync_core_before_usermode (v2) Date: Tue, 16 Jan 2018 19:28:07 +0100 (CET) Message-ID: References: <20180115191104.12437-1-mathieu.desnoyers@efficios.com> <20180115191104.12437-8-mathieu.desnoyers@efficios.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20180115191104.12437-8-mathieu.desnoyers@efficios.com> Sender: linux-kernel-owner@vger.kernel.org To: Mathieu Desnoyers Cc: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Andy Lutomirski , "Paul E . McKenney" , Boqun Feng , Andrew Hunter , Maged Michael , Avi Kivity , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Dave Watson , "H . Peter Anvin" , Andrea Parri , Russell King , Greg Hackmann , Will Deacon , David Sehr Linus Torvalds List-Id: linux-arch.vger.kernel.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from Galois.linutronix.de ([146.0.238.70]:43888 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbeAPS2l (ORCPT ); Tue, 16 Jan 2018 13:28:41 -0500 Date: Tue, 16 Jan 2018 19:28:07 +0100 (CET) From: Thomas Gleixner Subject: Re: [PATCH for 4.16 07/10] x86: Introduce sync_core_before_usermode (v2) In-Reply-To: <20180115191104.12437-8-mathieu.desnoyers@efficios.com> Message-ID: References: <20180115191104.12437-1-mathieu.desnoyers@efficios.com> <20180115191104.12437-8-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-arch-owner@vger.kernel.org List-ID: To: Mathieu Desnoyers Cc: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Andy Lutomirski , "Paul E . McKenney" , Boqun Feng , Andrew Hunter , Maged Michael , Avi Kivity , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Dave Watson , "H . Peter Anvin" , Andrea Parri , Russell King , Greg Hackmann , Will Deacon , David Sehr , Linus Torvalds , x86@kernel.org, linux-arch@vger.kernel.org Message-ID: <20180116182807.U8Qy0Yvkxl9ZZI-QOjYXa7BAMCUy3TnigYdvVjg4hRY@z> 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