Re: [RFC PATCH] x86, fpu: Use eagerfpu by default on all CPUs

From: Ingo Molnar
Date: Wed Feb 25 2015 - 05:50:29 EST



* Borislav Petkov <bp@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/