Re: [Xen-devel] [PATCH v3 7/7] x86/build: Use new .nops directive when available

2018-03-08 Thread Jan Beulich
>>> On 08.03.18 at 17:48, wrote: > On 08/03/18 15:53, Jan Beulich wrote: > On 07.03.18 at 16:51, wrote: >>> --- a/xen/arch/x86/Rules.mk >>> +++ b/xen/arch/x86/Rules.mk >>> @@ -29,6 +29,10 @@ $(call as-option-add,CFLAGS,CC,"invpcid >>> (%rax)$$(comma)%rax",-DHAVE_AS_INVPCID) >>> $(call as-op

Re: [Xen-devel] [PATCH v3 7/7] x86/build: Use new .nops directive when available

2018-03-08 Thread Andrew Cooper
On 08/03/18 15:53, Jan Beulich wrote: On 07.03.18 at 16:51, wrote: >> --- a/xen/arch/x86/Rules.mk >> +++ b/xen/arch/x86/Rules.mk >> @@ -29,6 +29,10 @@ $(call as-option-add,CFLAGS,CC,"invpcid >> (%rax)$$(comma)%rax",-DHAVE_AS_INVPCID) >> $(call as-option-add,CFLAGS,CC,\ >> ".if ((1 > 0)

Re: [Xen-devel] [PATCH v3 7/7] x86/build: Use new .nops directive when available

2018-03-08 Thread Jan Beulich
>>> On 07.03.18 at 16:51, wrote: > --- a/xen/arch/x86/Rules.mk > +++ b/xen/arch/x86/Rules.mk > @@ -29,6 +29,10 @@ $(call as-option-add,CFLAGS,CC,"invpcid > (%rax)$$(comma)%rax",-DHAVE_AS_INVPCID) > $(call as-option-add,CFLAGS,CC,\ > ".if ((1 > 0) < 0); .error \"\";.endif",,-DHAVE_AS_NEGATIV

[Xen-devel] [PATCH v3 7/7] x86/build: Use new .nops directive when available

2018-03-07 Thread Andrew Cooper
Newer versions of binutils are capable of emitting an exact number bytes worth of optimised nops, which are P6 nops. Use this in preference to .skip when available, and skip optimising nops entirely when they correct for the running hardware. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: