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, chao.p.p...@linux.intel.com 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

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, chao.p.p...@linux.intel.com 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

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, dario.faggi...@citrix.com wrote: On Fri, 2015-05-29 at 09:07 +0100, Jan Beulich wrote: On 29.05.15 at 04:47, chao.p.p...@linux.intel.com wrote: On Thu, May 28, 2015 at 02:26:03PM +0100, Jan Beulich wrote: --- a/xen/include/public/sysctl.h +++

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, chao.p.p...@linux.intel.com 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

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;

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, chao.p.p...@linux.intel.com 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

[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 chao.p.p...@linux.intel.com Reviewed-by: Andrew Cooper andrew.coop...@citrix.com --- Changes in v7: * Copyback psr_cat_op