Re: [Xen-devel] [PATCH 1/2] x86: improve NOP use for AMD CPUs

2017-12-18 Thread Andrew Cooper
On 18/12/17 10:13, Jan Beulich wrote: > For Fam10 and later AMD recommends using the "long" NOP forms. Re-write > the present Intel code into switch() statements and add AMD logic. This > at the same time brings us in line again with current Linux. > > Signed-off-by: Jan Beulich Overall, the logi

[Xen-devel] [PATCH 1/2] x86: improve NOP use for AMD CPUs

2017-12-18 Thread Jan Beulich
For Fam10 and later AMD recommends using the "long" NOP forms. Re-write the present Intel code into switch() statements and add AMD logic. This at the same time brings us in line again with current Linux. Signed-off-by: Jan Beulich --- a/xen/arch/x86/alternative.c +++ b/xen/arch/x86/alternative.