Re: Minutes from Feb 21 LSE Call

Linus Torvalds (torvalds@transmeta.com)
Tue, 25 Feb 2003 18:04:38 -0800 (PST)


On Tue, 25 Feb 2003, Dave Jones wrote:
>
> > Yes, if you don't take advantage of sysenter, then all the sysenter
> > support will just make us look worse ;(
>
> Andi's patch[1] to remove one of the wrmsr's from the context switch
> fast path should win back at least some of the lost microbenchmark
> points.

But the patch is fundamentally broken wrt preemption at least, and it
looks totally unfixable.

It's also overly complex, for no apparent reason. The simple way to avoid
the wrmsr of SYSENTER_CS is to just cache a per-cpu copy in memory,
preferably in some location that is already in the cache at context switch
time for other reasons.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/