Re: [PATCH] x86: add hintable NOPs emulation

From: Marcos Del Sol Vives
Date: Wed Aug 20 2025 - 06:32:35 EST


El 20/08/2025 a las 12:08, Borislav Petkov escribió:
> On Wed, Aug 20, 2025 at 12:01:30PM +0200, Marcos Del Sol Vives wrote:
>> Please define "once". Once per what? Per boot? Per executable? Per process?
>
> pr_err_once(). Per boot.

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.