Re: [Xen-devel] [PATCH v8 18/24] x86: L2 CAT: implement get hw info flow.

2017-03-10 Thread Jan Beulich
>>> On 10.03.17 at 06:57, wrote: > On 17-03-09 08:13:59, Jan Beulich wrote: >> >>> On 15.02.17 at 09:49, wrote: >> > +static bool l2_cat_get_feat_info(const struct feat_node *feat, >> > + uint32_t data[], uint32_t array_len) >> > +{ >> > +if ( !data || 2 > arra

Re: [Xen-devel] [PATCH v8 18/24] x86: L2 CAT: implement get hw info flow.

2017-03-09 Thread Yi Sun
On 17-03-09 08:13:59, Jan Beulich wrote: > >>> On 15.02.17 at 09:49, wrote: > > +static bool l2_cat_get_feat_info(const struct feat_node *feat, > > + uint32_t data[], uint32_t array_len) > > +{ > > +if ( !data || 2 > array_len ) > > +return false; > > +

Re: [Xen-devel] [PATCH v8 18/24] x86: L2 CAT: implement get hw info flow.

2017-03-09 Thread Jan Beulich
>>> On 15.02.17 at 09:49, wrote: > +static bool l2_cat_get_feat_info(const struct feat_node *feat, > + uint32_t data[], uint32_t array_len) > +{ > +if ( !data || 2 > array_len ) > +return false; > + > +data[CBM_LEN] = feat->info.l2_cat_info.cbm_len;

Re: [Xen-devel] [PATCH v8 18/24] x86: L2 CAT: implement get hw info flow.

2017-02-28 Thread Roger Pau Monné
On Wed, Feb 15, 2017 at 04:49:33PM +0800, Yi Sun wrote: > This patch implements get HW info flow for L2 CAT including L2 CAT callback > function. > > Signed-off-by: Yi Sun > --- > xen/arch/x86/psr.c | 16 > xen/arch/x86/sysctl.c | 15 +++ > xen/include

[Xen-devel] [PATCH v8 18/24] x86: L2 CAT: implement get hw info flow.

2017-02-15 Thread Yi Sun
This patch implements get HW info flow for L2 CAT including L2 CAT callback function. Signed-off-by: Yi Sun --- xen/arch/x86/psr.c | 16 xen/arch/x86/sysctl.c | 15 +++ xen/include/asm-x86/psr.h | 1 + xen/include/public/sysctl.h | 6 ++ 4 file