BPF List
 help / color / mirror / Atom feed
  • * Re: [PATCH v2 14/14] bpf,x86: Respect X86_FEATURE_RETPOLINE*
           [not found] ` <20211020105843.345016338@infradead.org>
           [not found]   ` <YW/4/7MjUf3hWfjz@hirez.programming.kicks-ass.net>
    @ 2021-10-21  0:07   ` Alexei Starovoitov
      2021-10-21  0:18     ` Josh Poimboeuf
      1 sibling, 1 reply; 17+ messages in thread
    From: Alexei Starovoitov @ 2021-10-21  0:07 UTC (permalink / raw)
      To: Peter Zijlstra
      Cc: x86, jpoimboe, andrew.cooper3, linux-kernel, ndesaulniers, bpf,
    	daniel
    
    On Wed, Oct 20, 2021 at 12:44:56PM +0200, Peter Zijlstra wrote:
    > +
    > +	if (cpu_feature_enabled(X86_FEATURE_RETPOLINE_AMD)) {
    > +		EMIT_LFENCE();
    > +		EMIT2(0xFF, 0xE0 + reg);
    > +	} else if (cpu_feature_enabled(X86_FEATURE_RETPOLINE)) {
    > +		emit_jump(&prog, reg_thunk[reg], ip);
    > +	} else
    
    One more question.
    What's a deal with AMD? I thought the retpoline is effective on it as well.
    lfence is an optimization or retpoline turned out to be not enough
    in some cases?
    
    ^ permalink raw reply	[flat|nested] 17+ messages in thread

  • end of thread, other threads:[~2021-10-25 12:45 UTC | newest]
    
    Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20211020104442.021802560@infradead.org>
         [not found] ` <20211020105843.345016338@infradead.org>
         [not found]   ` <YW/4/7MjUf3hWfjz@hirez.programming.kicks-ass.net>
    2021-10-21  0:05     ` [PATCH v2 14/14] bpf,x86: Respect X86_FEATURE_RETPOLINE* Alexei Starovoitov
    2021-10-21  8:47       ` Peter Zijlstra
    2021-10-21 18:03         ` Alexei Starovoitov
    2021-10-21 22:37           ` Peter Zijlstra
    2021-10-21 23:24             ` Alexei Starovoitov
    2021-10-21 23:38               ` Josh Poimboeuf
    2021-10-21 23:42                 ` Alexei Starovoitov
    2021-10-22 11:31                   ` Peter Zijlstra
    2021-10-22 15:22                     ` Alexei Starovoitov
    2021-10-25 13:44                       ` Maciej Fijalkowski
    2021-10-25 12:42                         ` Peter Zijlstra
    2021-10-21 23:51         ` Zvi Effron
    2021-10-22  8:33           ` Peter Zijlstra
    2021-10-22 21:06             ` Zvi Effron
    2021-10-21  0:07   ` Alexei Starovoitov
    2021-10-21  0:18     ` Josh Poimboeuf
    2021-10-21  8:53       ` Peter Zijlstra
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox