Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
- On Nov 10, 2017, at 5:32 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Nov 10, 2017, at 5:20 PM, Mathieu Desnoyers > mathieu.desnoy...@efficios.com wrote: > >> - On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: >> >>> On Fri, Nov 10, 2017

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
- On Nov 10, 2017, at 5:32 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Nov 10, 2017, at 5:20 PM, Mathieu Desnoyers > mathieu.desnoy...@efficios.com wrote: > >> - On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: >> >>> On Fri, Nov 10, 2017

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
- On Nov 10, 2017, at 5:36 PM, Andy Lutomirski l...@amacapital.net wrote: >> On Nov 10, 2017, at 2:20 PM, Mathieu Desnoyers >> >> wrote: >> >> - On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: >> >>> On Fri, Nov 10, 2017 at 1:37 PM,

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
- On Nov 10, 2017, at 5:36 PM, Andy Lutomirski l...@amacapital.net wrote: >> On Nov 10, 2017, at 2:20 PM, Mathieu Desnoyers >> >> wrote: >> >> - On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: >> >>> On Fri, Nov 10, 2017 at 1:37 PM, Mathieu Desnoyers >>> wrote:

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Andy Lutomirski
> On Nov 10, 2017, at 2:20 PM, Mathieu Desnoyers > wrote: > > - On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: > >> On Fri, Nov 10, 2017 at 1:37 PM, Mathieu Desnoyers >> wrote: >>> Introduce an

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Andy Lutomirski
> On Nov 10, 2017, at 2:20 PM, Mathieu Desnoyers > wrote: > > - On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: > >> On Fri, Nov 10, 2017 at 1:37 PM, Mathieu Desnoyers >> wrote: >>> Introduce an architecture function that ensures the current CPU >>> issues a core

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
- On Nov 10, 2017, at 5:20 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: > >> On Fri, Nov 10, 2017 at 1:37 PM, Mathieu Desnoyers >> wrote: >>> Introduce an architecture

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
- On Nov 10, 2017, at 5:20 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: > >> On Fri, Nov 10, 2017 at 1:37 PM, Mathieu Desnoyers >> wrote: >>> Introduce an architecture function that ensures the

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
- On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: > On Fri, Nov 10, 2017 at 1:37 PM, Mathieu Desnoyers > wrote: >> Introduce an architecture function that ensures the current CPU >> issues a core serializing instruction before returning to

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
- On Nov 10, 2017, at 5:02 PM, Andy Lutomirski l...@kernel.org wrote: > On Fri, Nov 10, 2017 at 1:37 PM, Mathieu Desnoyers > wrote: >> Introduce an architecture function that ensures the current CPU >> issues a core serializing instruction before returning to usermode. >> >> This is needed

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Andy Lutomirski
On Fri, Nov 10, 2017 at 1:37 PM, Mathieu Desnoyers wrote: > Introduce an architecture function that ensures the current CPU > issues a core serializing instruction before returning to usermode. > > This is needed to fix an existing core serialization bug on >

Re: [RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Andy Lutomirski
On Fri, Nov 10, 2017 at 1:37 PM, Mathieu Desnoyers wrote: > Introduce an architecture function that ensures the current CPU > issues a core serializing instruction before returning to usermode. > > This is needed to fix an existing core serialization bug on > thread migration, and also needed by

[RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
Introduce an architecture function that ensures the current CPU issues a core serializing instruction before returning to usermode. This is needed to fix an existing core serialization bug on thread migration, and also needed by the membarrier "sync_core" command. Architectures defining the

[RFC PATCH for 4.15 05/10] x86: Introduce sync_core_before_usermode

2017-11-10 Thread Mathieu Desnoyers
Introduce an architecture function that ensures the current CPU issues a core serializing instruction before returning to usermode. This is needed to fix an existing core serialization bug on thread migration, and also needed by the membarrier "sync_core" command. Architectures defining the