Re: [RFC PATCH v2 2/3] restartable sequences: x86 ABI

2015-12-11 Thread Mathieu Desnoyers
- On Oct 27, 2015, at 7:57 PM, Paul Turner commo...@gmail.com wrote: > From: Paul Turner > > Recall the general ABI is: > The kernel ABI generally consists of: > a) A shared TLS word which exports the current cpu and event-count > b) A shared TLS word which, when non-zero, stores

Re: [RFC PATCH v2 2/3] restartable sequences: x86 ABI

2015-12-11 Thread Mathieu Desnoyers
- On Oct 27, 2015, at 7:57 PM, Paul Turner commo...@gmail.com wrote: > From: Paul Turner > > Recall the general ABI is: > The kernel ABI generally consists of: > a) A shared TLS word which exports the current cpu and event-count > b) A shared TLS word which, when

Re: [RFC PATCH v2 2/3] restartable sequences: x86 ABI

2015-10-27 Thread Paul Turner
On Tue, Oct 27, 2015 at 10:03 PM, Peter Zijlstra wrote: > > On Tue, Oct 27, 2015 at 04:57:05PM -0700, Paul Turner wrote: > > +static void rseq_sched_out(struct preempt_notifier *pn, > > +struct task_struct *next) > > +{ > > + set_thread_flag(TIF_NOTIFY_RESUME); > > +}

Re: [RFC PATCH v2 2/3] restartable sequences: x86 ABI

2015-10-27 Thread Peter Zijlstra
On Tue, Oct 27, 2015 at 04:57:05PM -0700, Paul Turner wrote: > +static void rseq_sched_out(struct preempt_notifier *pn, > +struct task_struct *next) > +{ > + set_thread_flag(TIF_NOTIFY_RESUME); > +} > > static __read_mostly struct preempt_ops rseq_preempt_ops = { >

[RFC PATCH v2 2/3] restartable sequences: x86 ABI

2015-10-27 Thread Paul Turner
From: Paul Turner Recall the general ABI is: The kernel ABI generally consists of: a) A shared TLS word which exports the current cpu and event-count b) A shared TLS word which, when non-zero, stores the first post-commit instruction if a sequence is active. (The kernel

[RFC PATCH v2 2/3] restartable sequences: x86 ABI

2015-10-27 Thread Paul Turner
From: Paul Turner Recall the general ABI is: The kernel ABI generally consists of: a) A shared TLS word which exports the current cpu and event-count b) A shared TLS word which, when non-zero, stores the first post-commit instruction if a sequence is active.

Re: [RFC PATCH v2 2/3] restartable sequences: x86 ABI

2015-10-27 Thread Paul Turner
On Tue, Oct 27, 2015 at 10:03 PM, Peter Zijlstra wrote: > > On Tue, Oct 27, 2015 at 04:57:05PM -0700, Paul Turner wrote: > > +static void rseq_sched_out(struct preempt_notifier *pn, > > +struct task_struct *next) > > +{ > > +

Re: [RFC PATCH v2 2/3] restartable sequences: x86 ABI

2015-10-27 Thread Peter Zijlstra
On Tue, Oct 27, 2015 at 04:57:05PM -0700, Paul Turner wrote: > +static void rseq_sched_out(struct preempt_notifier *pn, > +struct task_struct *next) > +{ > + set_thread_flag(TIF_NOTIFY_RESUME); > +} > > static __read_mostly struct preempt_ops rseq_preempt_ops = { >