Re: [Xen-devel] [PATCH v8 05/13] x86: expose CBM length and COS number information

2015-05-29 Thread Jan Beulich
>>> On 29.05.15 at 11:23, wrote: > On Fri, 2015-05-29 at 09:07 +0100, Jan Beulich wrote: >> >>> On 29.05.15 at 04:47, wrote: >> > On Thu, May 28, 2015 at 02:26:03PM +0100, Jan Beulich wrote: >> >> >> >> > --- a/xen/include/public/sysctl.h >> >> > +++ b/xen/include/public/sysctl.h >> >> > @@ -694

Re: [Xen-devel] [PATCH v8 05/13] x86: expose CBM length and COS number information

2015-05-29 Thread Dario Faggioli
On Fri, 2015-05-29 at 09:07 +0100, Jan Beulich wrote: > >>> On 29.05.15 at 04:47, wrote: > > On Thu, May 28, 2015 at 02:26:03PM +0100, Jan Beulich wrote: > >> > >> > --- a/xen/include/public/sysctl.h > >> > +++ b/xen/include/public/sysctl.h > >> > @@ -694,6 +694,20 @@ struct xen_sysctl_pcitopoinf

Re: [Xen-devel] [PATCH v8 05/13] x86: expose CBM length and COS number information

2015-05-29 Thread Dario Faggioli
On Thu, 2015-05-28 at 14:26 +0100, Jan Beulich wrote: > >>> On 21.05.15 at 10:41, wrote: > > --- a/xen/include/public/sysctl.h > > +++ b/xen/include/public/sysctl.h > > @@ -694,6 +694,20 @@ struct xen_sysctl_pcitopoinfo { > > typedef struct xen_sysctl_pcitopoinfo xen_sysctl_pcitopoinfo_t; > > D

Re: [Xen-devel] [PATCH v8 05/13] x86: expose CBM length and COS number information

2015-05-29 Thread Jan Beulich
>>> On 29.05.15 at 04:47, wrote: > On Thu, May 28, 2015 at 02:26:03PM +0100, Jan Beulich wrote: >> >> > --- a/xen/include/public/sysctl.h >> > +++ b/xen/include/public/sysctl.h >> > @@ -694,6 +694,20 @@ struct xen_sysctl_pcitopoinfo { >> > typedef struct xen_sysctl_pcitopoinfo xen_sysctl_pcitopo

Re: [Xen-devel] [PATCH v8 05/13] x86: expose CBM length and COS number information

2015-05-28 Thread Chao Peng
On Thu, May 28, 2015 at 02:26:03PM +0100, Jan Beulich wrote: > > > --- a/xen/include/public/sysctl.h > > +++ b/xen/include/public/sysctl.h > > @@ -694,6 +694,20 @@ struct xen_sysctl_pcitopoinfo { > > typedef struct xen_sysctl_pcitopoinfo xen_sysctl_pcitopoinfo_t; > > DEFINE_XEN_GUEST_HANDLE(xen_

Re: [Xen-devel] [PATCH v8 05/13] x86: expose CBM length and COS number information

2015-05-28 Thread Jan Beulich
>>> On 21.05.15 at 10:41, wrote: > --- a/xen/arch/x86/psr.c > +++ b/xen/arch/x86/psr.c > @@ -216,6 +216,38 @@ void psr_ctxt_switch_to(struct domain *d) > } > } > > +static int get_cat_socket_info(unsigned int socket, > + struct psr_cat_socket_info **info) > +{

[Xen-devel] [PATCH v8 05/13] x86: expose CBM length and COS number information

2015-05-21 Thread Chao Peng
General CAT information such as maximum COS and CBM length are exposed to user space by a SYSCTL hypercall, to help user space to construct the CBM. Signed-off-by: Chao Peng Reviewed-by: Andrew Cooper --- Changes in v7: * Copyback psr_cat_op only for XEN_SYSCTL_PSR_CAT_get_l3_info. --- xen/arch