Re: [Xen-devel] [PATCH v3 3/8] x86: detect and initialize Intel CAT feature

2015-04-13 Thread Andrew Cooper
On 13/04/15 11:51, Jan Beulich wrote: On 27.03.15 at 19:31, wrote: >> On 26/03/15 12:38, Chao Peng wrote: >>> +cpuid_count(PSR_CPUID_LEVEL_CAT, 0, &eax, &ebx, &ecx, &edx); >>> +if ( ebx & PSR_RESOURCE_TYPE_L3 ) >>> +{ >>> +cpuid_count(PSR_CPUID_LEVEL_CAT, 1, &eax, &ebx, &e

Re: [Xen-devel] [PATCH v3 3/8] x86: detect and initialize Intel CAT feature

2015-04-13 Thread Jan Beulich
>>> On 27.03.15 at 19:31, wrote: > On 26/03/15 12:38, Chao Peng wrote: >> +cpuid_count(PSR_CPUID_LEVEL_CAT, 0, &eax, &ebx, &ecx, &edx); >> +if ( ebx & PSR_RESOURCE_TYPE_L3 ) >> +{ >> +cpuid_count(PSR_CPUID_LEVEL_CAT, 1, &eax, &ebx, &ecx, &edx); >> +info->cbm_len = (eax

Re: [Xen-devel] [PATCH v3 3/8] x86: detect and initialize Intel CAT feature

2015-03-27 Thread Andrew Cooper
On 26/03/15 12:38, Chao Peng wrote: > Detect Intel Cache Allocation Technology(CAT) feature and store the > cpuid information for later use. Currently only L3 cache allocation is > supported. The L3 CAT features may vary among sockets so per-socket > feature information is stored. The initializatio

[Xen-devel] [PATCH v3 3/8] x86: detect and initialize Intel CAT feature

2015-03-26 Thread Chao Peng
Detect Intel Cache Allocation Technology(CAT) feature and store the cpuid information for later use. Currently only L3 cache allocation is supported. The L3 CAT features may vary among sockets so per-socket feature information is stored. The initialization can happen either at boot time or when CPU