>>> On 29.05.15 at 04:40, wrote:
> On Thu, May 28, 2015 at 01:54:39PM +0100, Jan Beulich wrote:
>> >>> On 21.05.15 at 10:41, wrote:
>> > +
>> > +if ( !cpu_has(c, X86_FEATURE_CAT) )
>> > +return;
>> > +
>> > +socket = cpu_to_socket(cpu);
>> > +if ( test_bit(socket, cat_socket_e
On Thu, May 28, 2015 at 01:54:39PM +0100, Jan Beulich wrote:
> >>> On 21.05.15 at 10:41, wrote:
> > +
> > +if ( !cpu_has(c, X86_FEATURE_CAT) )
> > +return;
> > +
> > +socket = cpu_to_socket(cpu);
> > +if ( test_bit(socket, cat_socket_enable) )
> > +return;
> > +
> > +
>>> On 21.05.15 at 10:41, wrote:
> --- a/xen/arch/x86/psr.c
> +++ b/xen/arch/x86/psr.c
> @@ -19,14 +19,25 @@
> #include
>
> #define PSR_CMT(1<<0)
> +#define PSR_CAT(1<<1)
> +
> +struct psr_cat_socket_info {
> +unsigned int cbm_len;
> +unsigned int cos_max;
> +};
>
>
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