Re: [RFC PATCH v3] membarrier: provide core serialization

2017-10-09 Thread Will Deacon
On Fri, Oct 06, 2017 at 11:08:25PM +0200, Peter Zijlstra wrote: > On Fri, Oct 06, 2017 at 08:57:56PM +, Mathieu Desnoyers wrote: > > Hi Hans, > > > > I'm currently making sure the > > MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED command makes its way into > > the 4.14 kernel before the end of th

Re: [RFC PATCH v3] membarrier: provide core serialization

2017-10-06 Thread Peter Zijlstra
On Fri, Oct 06, 2017 at 08:57:56PM +, Mathieu Desnoyers wrote: > Hi Hans, > > I'm currently making sure the > MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED command makes its way into > the 4.14 kernel before the end of the release candidates. Once that > is done, I plan to post a patch adding a

Re: [RFC PATCH v3] membarrier: provide core serialization

2017-10-06 Thread Mathieu Desnoyers
- On Oct 6, 2017, at 4:14 PM, Hans Boehm hbo...@google.com wrote: > What's the status of MEMBARRIER_FLAG_SYNC_CORE? The discussion I saw left it > unclear whether this would be a separate flag, or included by default. Did I > miss something? I think we're fine with either, but we do have s s

Re: [RFC PATCH v3] membarrier: provide core serialization

2017-09-18 Thread Will Deacon
On Thu, Sep 07, 2017 at 05:03:49PM -0700, Hans Boehm wrote: > > [Mathieu: ] > > > > Assuming we don't need a sync core before updating the old code, an > > aggressive approach would be: > > > > reclaim and re-use (aggressive): > > > > 1- userspace unpublish all reference to old code, > > 2- userspa

Re: [RFC PATCH v3] membarrier: provide core serialization

2017-09-01 Thread Mathieu Desnoyers
- On Sep 1, 2017, at 1:10 PM, Will Deacon will.dea...@arm.com wrote: > Hi Mathieu, > > On Fri, Sep 01, 2017 at 05:00:38PM +, Mathieu Desnoyers wrote: >> - On Sep 1, 2017, at 12:25 PM, Will Deacon will.dea...@arm.com wrote: >> >> > On Fri, Sep 01, 2017 at 12:10:07PM -0400, Mathieu Des

Re: [RFC PATCH v3] membarrier: provide core serialization

2017-09-01 Thread Will Deacon
Hi Mathieu, On Fri, Sep 01, 2017 at 05:00:38PM +, Mathieu Desnoyers wrote: > - On Sep 1, 2017, at 12:25 PM, Will Deacon will.dea...@arm.com wrote: > > > On Fri, Sep 01, 2017 at 12:10:07PM -0400, Mathieu Desnoyers wrote: > >> Add a new MEMBARRIER_FLAG_SYNC_CORE flag to the membarrier > >>

Re: [RFC PATCH v3] membarrier: provide core serialization

2017-09-01 Thread Mathieu Desnoyers
- On Sep 1, 2017, at 12:25 PM, Will Deacon will.dea...@arm.com wrote: > On Fri, Sep 01, 2017 at 12:10:07PM -0400, Mathieu Desnoyers wrote: >> Add a new MEMBARRIER_FLAG_SYNC_CORE flag to the membarrier >> system call. It allows membarrier to issue core serializing barriers in >> addition to mem

Re: [RFC PATCH v3] membarrier: provide core serialization

2017-09-01 Thread Will Deacon
On Fri, Sep 01, 2017 at 12:10:07PM -0400, Mathieu Desnoyers wrote: > Add a new MEMBARRIER_FLAG_SYNC_CORE flag to the membarrier > system call. It allows membarrier to issue core serializing barriers in > addition to memory barriers on target threads whenever a membarrier > command is performed. >

[RFC PATCH v3] membarrier: provide core serialization

2017-09-01 Thread Mathieu Desnoyers
Add a new MEMBARRIER_FLAG_SYNC_CORE flag to the membarrier system call. It allows membarrier to issue core serializing barriers in addition to memory barriers on target threads whenever a membarrier command is performed. It is relevant for reclaim of JIT code, which requires to issue core serializ