lkml.org 
[lkml]   [2018]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH tip-pti 2/2] x86/entry: interleave XOR register clearing with PUSH/MOV instructions
    > The reason for that complexity is purely the system call fastpath case
    > that no longer exists, I think.
    >
    > Am I missing something?

    Yes merging the macros should be fine without fast path.

    But for push, on older CPUs (older AMD, most Atoms, really old Intel big core)
    sub+mov is a lot faster than push because push has additional dependencies
    causing pipeline bubbles. So you would make these cases slower if you
    use PUSH.

    That is no different between fast path and slow path.

    -Andi

    PS it was never fully clear to me why we removed the fast path. After all it
    could still be useful on the future CPUs with Spectre hardware fixes.

    \
     
     \ /
      Last update: 2018-02-07 00:54    [W:4.187 / U:1.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site