[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v8 01/17] x86: Support compiling with indirect branch thunks



On Sun, Jan 14, 2018 at 08:48:26PM +0100, David Woodhouse wrote:
> On Fri, 2018-01-12 at 18:00 +0000, Andrew Cooper wrote:
> > 
> > +.macro IND_THUNK_RETPOLINE reg:req
> > +        call 2f
> > +1:
> 
> Linux and GCC have now settled on 'pause;lfence;jmp' here.

What is the benefit of the 'pause' in that?
> 
> > +        lfence
> > +        jmp 1b
> > +2:
> > +        mov %\reg, (%rsp)
> > +        ret
> > +.endm
> > +



> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxx
> https://lists.xenproject.org/mailman/listinfo/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.