Re: [PATCH 1/2] x86: Remove dynamic NOP selection

From: Steven Rostedt
Date: Sun Jan 21 2024 - 19:57:04 EST


On Sun, 21 Jan 2024 16:15:57 -0800
"H. Peter Anvin" <hpa@xxxxxxxxx> wrote:

> On January 21, 2024 3:58:11 PM PST, Thorsten Glaser <tg@xxxxxxxxxx> wrote:
> >H. Peter Anvin dixit:
> >
> >> But yes, with all even remotely recent CPUs all actually handling nopl
> >> properly, this isn't relevant anymore.
> >
> >This was, incidentally, triggered by looking into a problem report that
> >something did *not* work on a Geode LX system.

What problem happened?

> >
> >People don’t just run Linux on “recent CPUs” (though I at least got me
> >an Atom and a Core2Duo for it and run BSD on my Pentium-M and VIA C7
> >systems).
> >
> >bye,
> >//mirabilos
>
> Yes, but it is a matter of where we optimize for performance as opposed to correctness.

There is no such thing as "optimize for correctness", it is either
correct or it is not. Correctness should always come before performance
(at least that is what Thomas has pounded into me ;-)

If a kernel use to work on a machine but a newer version no longer
works, I call that a regression.

-- Steve