Re: [PATCH] x86: add hintable NOPs emulation

From: Borislav Petkov
Date: Wed Aug 20 2025 - 06:31:54 EST


On Wed, Aug 20, 2025 at 12:21:40PM +0200, Marcos Del Sol Vives wrote:
> Would a simple:
>
> > pr_warn_once("Your processor does not correctly handle hintable NOPs.\n");
> > pr_warn_once("The kernel will emulate them, but the performance will be impacted!\n");
>
> work for you, then? With no thread information, as that might make the user
> think there is only once binary impacted.

I don't mind if you make the warning message as helpful as possible and even
dump current->comm and whatever else is needed to help the user address the
issue.

What I mind is flooding dmesg unnecessarily with the same stanzas over and
over again.

If the user can do something about it, then she should be able to find out
also which executables need to be recompiled.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette