Re: [PATCH 1/3] x86/entry/64: Remove the SYSCALL64 fast path
From: Ingo Molnar
Date: Sun Jan 28 2018 - 14:00:43 EST
* Andy Lutomirski <luto@xxxxxxxxxx> wrote:
> The SYCALLL64 fast path was a nice, if small, optimization back in
> the good old days when syscalls were actually reasonably fast. Now
> we have PTI to slow everything down, and indirect branches are
> verboten, making everything messier. The retpoline code in the fast
> path was particularly nasty.
>
> Just get rid of the fast path. The slow path is barely slower.
>
> Signed-off-by: Andy Lutomirski <luto@xxxxxxxxxx>
> ---
>
> This isn't quite identical to Linus' patch. I cleaned up the
> SYSCALL64 entry code to use all pushes rather than pushing all but 6
> regs and moving the rest.
Hm, could we please have this in two parts please, out of general paranoia?
One patch doing the easy fast path removal, the other doing the mov/push
conversion?
Bisectability, reviewability and all that.
Exact same patch result.
Thanks,
Ingo