Re: [Xen-devel] [PATCH v9 03/25] x86: refactor psr: implement main data structures.

2017-03-27 Thread Jan Beulich
>>> On 27.03.17 at 09:12, wrote: > On 17-03-27 00:20:58, Jan Beulich wrote: >> >>> On 27.03.17 at 04:38, wrote: >> > On 17-03-24 10:19:30, Jan Beulich wrote: >> >> >>> On 16.03.17 at 12:07, wrote: >> >> > +struct psr_cat_hw_info { >> >> > +unsigned int cbm_len; >> >> > +unsigned int cos_

Re: [Xen-devel] [PATCH v9 03/25] x86: refactor psr: implement main data structures.

2017-03-27 Thread Yi Sun
On 17-03-27 00:20:58, Jan Beulich wrote: > >>> On 27.03.17 at 04:38, wrote: > > On 17-03-24 10:19:30, Jan Beulich wrote: > >> >>> On 16.03.17 at 12:07, wrote: > >> > +struct psr_cat_hw_info { > >> > +unsigned int cbm_len; > >> > +unsigned int cos_max; > >> > >> So you have this field, an

Re: [Xen-devel] [PATCH v9 03/25] x86: refactor psr: implement main data structures.

2017-03-26 Thread Jan Beulich
>>> On 27.03.17 at 04:38, wrote: > On 17-03-24 10:19:30, Jan Beulich wrote: >> >>> On 16.03.17 at 12:07, wrote: >> > +struct psr_cat_hw_info { >> > +unsigned int cbm_len; >> > +unsigned int cos_max; >> >> So you have this field, and ... >> >> > +}; >> > + >> > +/* >> > + * This structur

Re: [Xen-devel] [PATCH v9 03/25] x86: refactor psr: implement main data structures.

2017-03-26 Thread Yi Sun
On 17-03-24 10:19:30, Jan Beulich wrote: > >>> On 16.03.17 at 12:07, wrote: > > +enum psr_feat_type { > > +PSR_SOCKET_L3_CAT = 0, > > Pointless " = 0". > Ok, will remove it. > > +PSR_SOCKET_L3_CDP, > > +PSR_SOCKET_L2_CAT, > > +PSR_SOCKET_MAX_FEAT, > > +}; > > + > > +/* CAT/CDP H

Re: [Xen-devel] [PATCH v9 03/25] x86: refactor psr: implement main data structures.

2017-03-24 Thread Jan Beulich
>>> On 16.03.17 at 12:07, wrote: > +enum psr_feat_type { > +PSR_SOCKET_L3_CAT = 0, Pointless " = 0". > +PSR_SOCKET_L3_CDP, > +PSR_SOCKET_L2_CAT, > +PSR_SOCKET_MAX_FEAT, > +}; > + > +/* CAT/CDP HW info data structure. */ > +struct psr_cat_hw_info { > +unsigned int cbm_len; > +

[Xen-devel] [PATCH v9 03/25] x86: refactor psr: implement main data structures.

2017-03-16 Thread Yi Sun
To construct an extendible framework, we need analyze PSR features and abstract the common things and feature specific things. Then, encapsulate them into different data structures. By analyzing PSR features, we can get below map. +--+--+--+ ->| Dom0 | Dom