Re: [RFC PATCH] tools/x86: add kcpuid tool to show raw CPU features

From: Borislav Petkov
Date: Wed Sep 02 2020 - 14:20:05 EST


On Wed, Sep 02, 2020 at 10:18:38AM -0700, Dave Hansen wrote:
> All good points.
>
> Personally, I think I'd be OK if kcpuid _focused_ on single-bit values
> only. Those are the vast majority of the things that we need from such
> a tool. I don't think there's nearly as much demand for the topology
> enumeration or TLB structure leaf parsing.
>
> I also kinda doubt we can come up with a file format off the top of our
> heads that can represent all the ways data is represented in the CPUID
> space. Single bits, sure.

Yap, agreed.

However, we should try to at least provide for some rudimentary support
for multibit fields in case we decide we need them down the road and
after the fact.

I guess it is enough if the tool dumps them and their meaning - if one
needs further info then one would go do the *actual* CPU documentation
anyway...

Thx.

--
Regards/Gruss,
Boris.

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