lkml.org 
[lkml]   [2015]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] x86, fpu: Use eagerfpu by default on all CPUs

* Borislav Petkov <bp@alien8.de> wrote:

> On Tue, Feb 24, 2015 at 04:07:07PM -0800, Andy Lutomirski wrote:
>
> > I'd prefer a different partial solution: encourage
> > everyone to clear the xstate before making syscalls
> > (using e.g. vzeroall). In fact, maybe user code should
> > aggressively clear newly-unused xstate.
>
> We don't trust userspace.

We certainly don't, but in this case it's a performance
optimization detail: if user-space clears unused xstate in
a way that the CPU recognizes it (for example VZEROALL)
then it might get faster context switches.

Thanks,

Ingo


\
 
 \ /
  Last update: 2015-02-25 12:01    [W:0.060 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site