Re: [PATCH] x86/cpufeatures: extend CPUID leaf 0xc0000001 support for Zhaoxin
From: Tony W Wang-oc
Date: Sun Apr 16 2023 - 22:47:38 EST
On 4/14/23 21:48, Borislav Petkov wrote:
> 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.
>
Ok, will patch this tool for Zhaoxin extended CPUID leaf.
Will add Zhaoxin CPU features to kernel when they are used by the kernel.
Sincerely
TonyWWangoc