Re: [Xen-devel] [PATCH v9 03/13] x86: maintain COS to CBM mapping for each socket

2015-06-23 Thread Jan Beulich
>>> On 23.06.15 at 09:08, wrote: > On Mon, Jun 15, 2015 at 05:02:59PM +0100, Jan Beulich wrote: >> >>> On 03.06.15 at 06:53, wrote: >> > @@ -209,6 +215,23 @@ void psr_ctxt_switch_to(struct domain *d) >> > } >> > } >> > >> > +static int cat_cpu_prepare(unsigned int cpu) >> > +{ >> > +s

Re: [Xen-devel] [PATCH v9 03/13] x86: maintain COS to CBM mapping for each socket

2015-06-23 Thread Chao Peng
On Mon, Jun 15, 2015 at 05:02:59PM +0100, Jan Beulich wrote: > >>> On 03.06.15 at 06:53, wrote: > > @@ -209,6 +215,23 @@ void psr_ctxt_switch_to(struct domain *d) > > } > > } > > > > +static int cat_cpu_prepare(unsigned int cpu) > > +{ > > +struct psr_cat_socket_info *info; > > + > > +

Re: [Xen-devel] [PATCH v9 03/13] x86: maintain COS to CBM mapping for each socket

2015-06-15 Thread Jan Beulich
>>> On 03.06.15 at 06:53, wrote: > @@ -209,6 +215,23 @@ void psr_ctxt_switch_to(struct domain *d) > } > } > > +static int cat_cpu_prepare(unsigned int cpu) > +{ > +struct psr_cat_socket_info *info; > + > +if ( !cat_socket_info ) > +return 0; > + > +info = cat_socket_inf

[Xen-devel] [PATCH v9 03/13] x86: maintain COS to CBM mapping for each socket

2015-06-02 Thread Chao Peng
For each socket, a COS to CBM mapping structure is maintained for each COS. The mapping is indexed by COS and the value is the corresponding CBM. Different VMs may use the same CBM, a reference count is used to indicate if the CBM is available. Signed-off-by: Chao Peng --- Changes in v9: * Alloca