This patch implements get HW info flow including L3 CAT callback
function.
It also changes sysctl interface to make it more general.
With this patch, 'psr-hwinfo' can work for L3 CAT.
Signed-off-by: Yi Sun
---
v10:
- remove 'PSR_SOCKET_UNKNOWN' and use 'ASSERT_UNREACHABLE()' to handle
>>> On 01.04.17 at 15:53, wrote:
> --- a/xen/arch/x86/psr.c
> +++ b/xen/arch/x86/psr.c
> @@ -93,6 +93,10 @@ struct feat_node {
> unsigned int cos_num;
> unsigned int cos_max;
> unsigned int cbm_len;
> +
> +/* get_feat_info is used to get feature HW info. */
> +
On 17-04-05 09:37:44, Jan Beulich wrote:
> >>> On 01.04.17 at 15:53, wrote:
> > --- a/xen/arch/x86/psr.c
> > +++ b/xen/arch/x86/psr.c
> > @@ -93,6 +93,10 @@ struct feat_node {
> > unsigned int cos_num;
> > unsigned int cos_max;
> > unsigned int cbm_len;
> > +
> > +
>>> On 06.04.17 at 08:05, wrote:
> On 17-04-05 09:37:44, Jan Beulich wrote:
>> >>> On 01.04.17 at 15:53, wrote:
>> > @@ -183,6 +187,22 @@ static bool feat_init_done(const struct
>> > psr_socket_info *info)
>> > return false;
>> > }
>> >
>> > +static enum psr_feat_type psr_cbm_type_to_fea
On 17-04-06 02:36:19, Jan Beulich wrote:
> >>> On 06.04.17 at 08:05, wrote:
> > On 17-04-05 09:37:44, Jan Beulich wrote:
> >> >>> On 01.04.17 at 15:53, wrote:
> >> > @@ -183,6 +187,22 @@ static bool feat_init_done(const struct
> >> > psr_socket_info *info)
> >> > return false;
> >> > }
> >
>>> On 06.04.17 at 13:16, wrote:
> On 17-04-06 02:36:19, Jan Beulich wrote:
>> >>> On 06.04.17 at 08:05, wrote:
>> > On 17-04-05 09:37:44, Jan Beulich wrote:
>> >> >>> On 01.04.17 at 15:53, wrote:
>> >> > @@ -183,6 +187,22 @@ static bool feat_init_done(const struct
> psr_socket_info *info)
>> >
On 17-04-06 08:04:16, Jan Beulich wrote:
> >>> On 06.04.17 at 13:16, wrote:
> > On 17-04-06 02:36:19, Jan Beulich wrote:
> >> >>> On 06.04.17 at 08:05, wrote:
> >> > On 17-04-05 09:37:44, Jan Beulich wrote:
> >> >> >>> On 01.04.17 at 15:53, wrote:
> >> >> > @@ -183,6 +187,22 @@ static bool feat_