Re: [PATCH v5 2/3] cpuid: Add a helper in scattered.c to return cpuid

2016-11-10 Thread Borislav Petkov
On Wed, Nov 09, 2016 at 07:05:27PM +0800, He Chen wrote: > Some sparse CPUID leafs are gathered in a fake leaf to save size of > x86_capability array in current code, but sometimes, kernel or other > modules (e.g. KVM cpuid enumeration) may need actual hardware leaf s/cpuid/CPUID/ > information.

Re: [PATCH v5 2/3] cpuid: Add a helper in scattered.c to return cpuid

2016-11-10 Thread Borislav Petkov
On Wed, Nov 09, 2016 at 07:05:27PM +0800, He Chen wrote: > Some sparse CPUID leafs are gathered in a fake leaf to save size of > x86_capability array in current code, but sometimes, kernel or other > modules (e.g. KVM cpuid enumeration) may need actual hardware leaf s/cpuid/CPUID/ > information.

[PATCH v5 2/3] cpuid: Add a helper in scattered.c to return cpuid

2016-11-09 Thread He Chen
Some sparse CPUID leafs are gathered in a fake leaf to save size of x86_capability array in current code, but sometimes, kernel or other modules (e.g. KVM cpuid enumeration) may need actual hardware leaf information. This patch adds a helper get_scattered_cpuid_leaf() to rebuild actual CPUID

[PATCH v5 2/3] cpuid: Add a helper in scattered.c to return cpuid

2016-11-09 Thread He Chen
Some sparse CPUID leafs are gathered in a fake leaf to save size of x86_capability array in current code, but sometimes, kernel or other modules (e.g. KVM cpuid enumeration) may need actual hardware leaf information. This patch adds a helper get_scattered_cpuid_leaf() to rebuild actual CPUID