Re: [PATCH v2 1/4] x86/speculation: Use IBRS if available before calling into firmware

2018-02-15 Thread David Woodhouse
On Wed, 2018-02-14 at 16:46 -0800, Jim Mattson wrote: > On Wed, Feb 14, 2018 at 3:29 PM, David Woodhouse wrote: > > > +#define alternative_msr_write(_msr, _val, _feature)    \ > > +   asm volatile(ALTERNATIVE("",    \ > > +   

Re: [PATCH v2 1/4] x86/speculation: Use IBRS if available before calling into firmware

2018-02-15 Thread David Woodhouse
On Wed, 2018-02-14 at 16:46 -0800, Jim Mattson wrote: > On Wed, Feb 14, 2018 at 3:29 PM, David Woodhouse wrote: > > > +#define alternative_msr_write(_msr, _val, _feature)    \ > > +   asm volatile(ALTERNATIVE("",    \ > > +    "movl

Re: [PATCH v2 1/4] x86/speculation: Use IBRS if available before calling into firmware

2018-02-14 Thread Jim Mattson
On Wed, Feb 14, 2018 at 3:29 PM, David Woodhouse wrote: > +#define alternative_msr_write(_msr, _val, _feature)\ > + asm volatile(ALTERNATIVE("",\ > +"movl %[msr], %%ecx\n\t" \ > +

Re: [PATCH v2 1/4] x86/speculation: Use IBRS if available before calling into firmware

2018-02-14 Thread Jim Mattson
On Wed, Feb 14, 2018 at 3:29 PM, David Woodhouse wrote: > +#define alternative_msr_write(_msr, _val, _feature)\ > + asm volatile(ALTERNATIVE("",\ > +"movl %[msr], %%ecx\n\t" \ > +