<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-rng/arch/x86/kernel/cpu/cpuid_parser.c, branch master</title>
<subtitle>Development tree for the kernel CSPRNG</subtitle>
<id>https://git.zx2c4.com/linux-rng/atom/arch/x86/kernel/cpu/cpuid_parser.c?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-rng/atom/arch/x86/kernel/cpu/cpuid_parser.c?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/'/>
<updated>2026-08-05T14:40:33Z</updated>
<entry>
<title>x86/CPU: Rename struct cpuid_read_output to struct cpuid_output</title>
<updated>2026-08-05T14:40:33Z</updated>
<author>
<name>Borislav Petkov (AMD)</name>
<email>bp@alien8.de</email>
</author>
<published>2026-08-05T01:53:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/commit/?id=6cc3a72caa6eb118c38f887d4608b9adb80e90e8'/>
<id>urn:sha1:6cc3a72caa6eb118c38f887d4608b9adb80e90e8</id>
<content type='text'>
There's no CPUID "write" operation so there's no need to have
a cpuid_read_output thing - cpuid_output is perfectly clear. And
shortens the code just fine.

Remove the funky function signature line breaks while at it.

No functional changes.

Signed-off-by: Borislav Petkov (AMD) &lt;bp@alien8.de&gt;
Link: https://lore.kernel.org/r/20260805025323.GCanKlox0DF7Gwhpf1@fat_crate.local
</content>
</entry>
<entry>
<title>x86/cpuid: Introduce a centralized CPUID parser</title>
<updated>2026-05-11T14:05:50Z</updated>
<author>
<name>Ahmed S. Darwish</name>
<email>darwi@linutronix.de</email>
</author>
<published>2026-03-27T02:15:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/commit/?id=fa6dcbc69ad495eeea315870278100a554a4ca18'/>
<id>urn:sha1:fa6dcbc69ad495eeea315870278100a554a4ca18</id>
<content type='text'>
Introduce a CPUID parser for populating the system's CPUID tables.

Since accessing a leaf within the CPUID table requires compile time
tokenization, split the parser into two stages:

  (a) Compile-time macros for tokenizing the leaf/subleaf offsets within
      the CPUID table.

  (b) Generic runtime code to fill the CPUID data, using a parsing table
      which collects these compile-time offsets.

For actual CPUID output parsing, support both generic and leaf-specific
read functions.

To ensure CPUID data early availability, invoke the parser during early
boot, early Xen boot, and at early secondary CPUs bring up.

Provide call site APIs to refresh a single leaf, or a leaf range, within
the CPUID tables.  This is for sites issuing MSR writes that partially
change the CPU's CPUID layout.  Doing full CPUID table rescans in such
cases will be destructive since the CPUID tables will host all of the
kernel's X86_FEATURE flags at a later stage.

Suggested-by: Thomas Gleixner &lt;tglx@kernel.org&gt;
Signed-off-by: Ahmed S. Darwish &lt;darwi@linutronix.de&gt;
Signed-off-by: Borislav Petkov (AMD) &lt;bp@alien8.de&gt;
Link: https://lore.kernel.org/all/20260327021645.555257-1-darwi@linutronix.de
</content>
</entry>
</feed>
