Re: [PATCH v12 2/4] x86/cpu: Check if feature string is non-zero

From: Borislav Petkov

Date: Mon Mar 30 2026 - 19:08:21 EST


On Mon, Mar 30, 2026 at 02:44:56PM -0700, H. Peter Anvin wrote:
> The Right Thing™ would be to have a table in the kernel which includes *all*
> the feature bit names, not just the ones exported to /proc/cpuinfo, and use
> the unfiltered string table for kernel messages (/proc/cpuinfo being
> filtered via a bitmask, list, or a flag in the table.)

Meh, not convinced. Not sure it is worth the effort and bloating if we can
simply look up the feature from word and bit number.

> It doesn't help one iota, either, that modprobe is supposed to know what the
> numeric bit positions mean, either. It is a pretty egregious design error.

That was designed in ancient times, I'd presume. :)

--
Regards/Gruss,
Boris.

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