Re: [RFC PATCH 7/8] x86/lib_user_wait.h: Add APIs for user wait instructions

2018-06-19 Thread Fenghua Yu
On Wed, Jun 20, 2018 at 12:34:32AM +0200, Thomas Gleixner wrote: > On Tue, 19 Jun 2018, Fenghua Yu wrote: > > On Tue, Jun 19, 2018 at 11:12:05AM +0200, Thomas Gleixner wrote: > > > On Fri, 15 Jun 2018, Fenghua Yu wrote: > > > > > > > A few new user wait instructions UMONITOR, UMWAIT, and TPAUSE ar

Re: [RFC PATCH 7/8] x86/lib_user_wait.h: Add APIs for user wait instructions

2018-06-19 Thread Thomas Gleixner
On Tue, 19 Jun 2018, Fenghua Yu wrote: > On Tue, Jun 19, 2018 at 11:12:05AM +0200, Thomas Gleixner wrote: > > On Fri, 15 Jun 2018, Fenghua Yu wrote: > > > > > A few new user wait instructions UMONITOR, UMWAIT, and TPAUSE are > > > published in the latest Intel Instruction Set Extensions document.

Re: [RFC PATCH 7/8] x86/lib_user_wait.h: Add APIs for user wait instructions

2018-06-19 Thread Fenghua Yu
On Tue, Jun 19, 2018 at 11:12:05AM +0200, Thomas Gleixner wrote: > On Fri, 15 Jun 2018, Fenghua Yu wrote: > > > A few new user wait instructions UMONITOR, UMWAIT, and TPAUSE are > > published in the latest Intel Instruction Set Extensions document. > > > > Define the APIs for user or kernel to us

Re: [RFC PATCH 7/8] x86/lib_user_wait.h: Add APIs for user wait instructions

2018-06-19 Thread Thomas Gleixner
On Fri, 15 Jun 2018, Fenghua Yu wrote: > A few new user wait instructions UMONITOR, UMWAIT, and TPAUSE are > published in the latest Intel Instruction Set Extensions document. > > Define the APIs for user or kernel to use the instructions. You're not defining APIs. You're adding a pile of misdes

[RFC PATCH 7/8] x86/lib_user_wait.h: Add APIs for user wait instructions

2018-06-15 Thread Fenghua Yu
A few new user wait instructions UMONITOR, UMWAIT, and TPAUSE are published in the latest Intel Instruction Set Extensions document. Define the APIs for user or kernel to use the instructions. If feature enabled GCC is available in the future, implementation of the APIs will be changed to call th