[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v8 19/24] x86: L2 CAT: implement get value flow.



On Wed, Feb 15, 2017 at 04:49:34PM +0800, Yi Sun wrote:
> This patch implements L2 CAT get value callback function and
> interface in domctl.
> 
> Signed-off-by: Yi Sun <yi.y.sun@xxxxxxxxxxxxxxx>
> ---
> diff --git a/xen/arch/x86/psr.c b/xen/arch/x86/psr.c
> index 05100b4..2adf62c 100644
> --- a/xen/arch/x86/psr.c
> +++ b/xen/arch/x86/psr.c
> @@ -744,9 +744,21 @@ static bool l2_cat_get_feat_info(const struct feat_node 
> *feat,
>      return true;
>  }
>  
> +static bool l2_cat_get_val(const struct feat_node *feat, unsigned int cos,
> +                          enum cbm_type type, uint64_t *val)
> +{
> +    if ( cos > feat->info.l2_cat_info.cos_max )
> +        cos = 0;

return false;?

Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.