Re: [PATCH v5 10/35] x86/lib: Add CPUID(0x1) CPU family and model calculation

From: Ahmed S. Darwish

Date: Thu Mar 05 2026 - 03:24:36 EST


On Wed, 04 Mar 2026, Borislav Petkov wrote:
>
> On Fri, Sep 05, 2025 at 02:14:50PM +0200, Ahmed S. Darwish wrote:
> > The x86 library code provides x86_family() and x86_model(). They take
> > raw CPUID(0x1) register output, extract the necessary fields with bitwise
> > operations, then calculate the CPU family and model out of that.
> >
> > In follow-up work, the x86 subystem will use parsed CPUID access, along
>
> Unknown word [subystem] in commit message.
> Suggestions: ['subsystem'...
>
> Please introduce a spellchecker into your patch creation workflow.
>

will do for the whole PQ.

>
> Please keep the old simpler code:
>
> ...
>
> This is way easier to parse than a ternary expression oneliner.
>
> Ditto below.
>

ACK.

Thanks,
Ahmed