Re: [Xen-devel] [PATCH v5 2/3] x86: add domctl cmd to set/get CDP code/data CBM

2015-09-29 Thread Chao Peng
> +bool_t cdp_enabled = cdp_is_enabled(socket, cdp_socket_enable); > > if ( IS_ERR(info) ) > return PTR_ERR(info); > > -*cbm = info->cos_to_cbm[d->arch.psr_cos_ids[socket]].cbm; > +switch ( type ) > +{ > +case PSR_CBM_TYPE_L3: > +if ( type ==

[Xen-devel] [PATCH v5 2/3] x86: add domctl cmd to set/get CDP code/data CBM

2015-09-28 Thread He Chen
CDP extends CAT and provides the capacity to control L3 code & data cache. With CDP, one COS corresponds to two CMBs(code & data). cbm_type is added to distinguish different CBM operations. Besides, new domctl cmds are introdunced to support set/get CDP CBM. Some CAT functions to operation CBMs