Re: [RFC PATCH 6/8] x86/lib_direct_store.h: Add APIs for direct store instructions

2018-06-19 Thread Thomas Gleixner
On Fri, 15 Jun 2018, Fenghua Yu wrote: > +static inline bool movdiri_supported(void) > +{ > + int eax, ebx, ecx, edx; > + bool ret; > + > + /* > + * If movdiri has been enumerated before, return cached movdiri > + * support info. > + */ > + if (_movdiri_enumerated) >

[RFC PATCH 6/8] x86/lib_direct_store.h: Add APIs for direct store instructions

2018-06-15 Thread Fenghua Yu
Direct store instructions MOVDIRI and MOVDIR64B 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 the intrinsic in