lkml.org 
[lkml]   [2014]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/2] x86_64,entry: Filter RFLAGS.NT on entry from userspace
On 10/01/2014 09:04 AM, Andy Lutomirski wrote:
>
> Agner Fog's tables for Sandy Bridge have 9 uops for popf and
> reciprocal throughput 18. sti isn't listed for Sandy Bridge or
> anything similar, but cld is 3 uops with reciprocal throughput 4.
> Also, popf accesses rsp, and the sysenter code is very heavy on stack
> manipulation.
>

It does a stack operation. Newer CPUs optimize stack accesses pretty
heavily. That doesn't mean back-to-back push/pop are all that
optimized, I wonder if it would help separating them. popf is unlikely
to ever be all that fast.

-hpa



\
 
 \ /
  Last update: 2014-10-01 18:41    [W:0.045 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site