Re: [PATCH] x86/cpufeatures: extend CPUID leaf 0xc0000001 support for Zhaoxin

From: Borislav Petkov
Date: Fri Apr 14 2023 - 09:48:34 EST


On Fri, Apr 14, 2023 at 09:14:17PM +0800, Tony W Wang-oc wrote:
> The instructions about these flags can be executed at any privilege
> level. I think using these flags in kernel mode is a case. This patch
> shows the statement of these flags to the user mode explicitly. So users
> can see and use these CPU features conveniently.
>
> > If you want to dump them on the hardware to know what's set or not,
> > there's tools/arch/x86/kcpuid/ for that.

See this here. We have this tool exactly for users who wanna see CPU
features. All CPU features, as a matter of fact.

--
Regards/Gruss,
Boris.

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