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

Re: [Xen-devel] [PATCH v10 13/25] x86: refactor psr: L3 CAT: set value: implement write msr flow.



On 17-04-11 09:25:28, Jan Beulich wrote:
> >>> On 01.04.17 at 15:53, <yi.y.sun@xxxxxxxxxxxxxxx> wrote:
> > +static void do_write_psr_msr(void *data)
> > +{
> > +    struct cos_write_info *info = data;
> > +    unsigned int cos            = info->cos;
> > +    struct feat_node *feat      = info->feature;
> > +
> > +    if ( cos > feat->props->cos_max )
> > +        return;
> 
> This check can as well be done in the caller, allowing to avoid the IPI
> in case it's true.
> 
Yes, thanks!

> > +    feat->props->write_msr(cos, info->val, feat);
> 
> Once the function consists of just this I wonder if it wasn't better
> to invoke the hook directly from write_psr_msr().
> 
To solve the issue we discussed in patch 5, I propsed a solution which may
change here. If you agree that solution, I think we still need this helper
function.

> Jan

_______________________________________________
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®.