Re: [PATCH v7 004/120] x86/cpuid: Introduce <asm/cpuid/leaf_types.h>

From: Christian Ludloff

Date: Mon Jun 08 2026 - 17:31:38 EST


On Mon, Jun 8, 2026 at 7:49 AM Borislav Petkov <bp@xxxxxxxxx> wrote:
> What you're doing is a database of *all* CPUID leafs. How long until someone
> copies or exports the header to something? Or starts generating the header
> from your XML and using it in her/his project?
>
> And what happens if someone has already started using the headers, you fix
> those spelling mistakes, release a new revision and someone updates the
> generated headers locally and code starts failing to build all of a sudden?
>
> What do you do then?
>
> I think with issues like that which can cause nasty workarounds, we cannot be
> urgent enough in fixing them.

The database will never be perfect – it is always in catch-up mode
in terms of leaves/fields/values that need to be fixed and/or added.

That much I can tell you with absolute certainty after more than 30
years of https://www.sandpile.org/x86/cpuid.htm maintenance, and
yes, being personally responsible for some of the CPUID madness.

Embrace that chase of completeness and correctness – "perfect is
the enemy of good". Ahmed, can you enable gitlab issue tracking?

--
C.