Re: [Xen-devel] [PATCH v7 07/14] x86: dynamically get/set CBM for a domain

2015-05-18 Thread Jan Beulich
>>> On 08.05.15 at 10:56, wrote: > +int psr_get_l3_cbm(struct domain *d, unsigned int socket, uint64_t *cbm) > +{ > +unsigned int cos; > +struct psr_cat_socket_info *info; > +int ret = get_cat_socket_info(socket, &info); > + > +if ( ret ) > +return ret; > + > +cos = d->

Re: [Xen-devel] [PATCH v7 07/14] x86: dynamically get/set CBM for a domain

2015-05-14 Thread Chao Peng
On Thu, May 14, 2015 at 11:19:17AM +0200, Dario Faggioli wrote: > On Fri, 2015-05-08 at 16:56 +0800, Chao Peng wrote: > > For CAT, COS is maintained in hypervisor only while CBM is exposed to > > user space directly to allow getting/setting domain's cache capacity. > > For each specified CBM, hyper

Re: [Xen-devel] [PATCH v7 07/14] x86: dynamically get/set CBM for a domain

2015-05-14 Thread Dario Faggioli
On Fri, 2015-05-08 at 16:56 +0800, Chao Peng wrote: > For CAT, COS is maintained in hypervisor only while CBM is exposed to > user space directly to allow getting/setting domain's cache capacity. > For each specified CBM, hypervisor will either use a existed COS which > has the same CBM or allocate