Re: [Xen-devel] [PATCH v9 04/13] x86: add COS information for each domain

2015-06-15 Thread Jan Beulich
>>> On 03.06.15 at 06:53, wrote: > +static void psr_free_cos(struct domain *d) > +{ > +unsigned int socket; > +unsigned int cos; > +struct psr_cat_socket_info *info; > + > +if( !d->arch.psr_cos_ids ) > +return; > + > +for ( socket = 0; socket < nr_sockets; socket++ ) >

[Xen-devel] [PATCH v9 04/13] x86: add COS information for each domain

2015-06-02 Thread Chao Peng
In Xen's implementation, the CAT enforcement granularity is per domain. Due to the length of CBM and the number of COS may be socket-different, each domain has COS ID for each socket. The domain get COS=0 by default and at runtime its COS is then allocated dynamically when user specifies a CBM for