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

Re: [Xen-devel] [PATCH 5/6] x86: remove defunct init/load/save_msr() hvm_funcs



> -----Original Message-----
> From: Jan Beulich [mailto:JBeulich@xxxxxxxx]
> Sent: 08 March 2019 16:50
> To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
> Cc: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>; Roger Pau Monne 
> <roger.pau@xxxxxxxxxx>; Wei Liu
> <wei.liu2@xxxxxxxxxx>; xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
> Subject: Re: [PATCH 5/6] x86: remove defunct init/load/save_msr() hvm_funcs
> 
> >>> On 07.01.19 at 13:02, <paul.durrant@xxxxxxxxxx> wrote:
> > @@ -1472,10 +1468,7 @@ static int hvm_load_cpu_msrs(struct domain *d, 
> > hvm_domain_context_t *h)
> >              return -EOPNOTSUPP;
> >      /* Checking finished */
> >
> > -    if ( hvm_funcs.load_msr )
> > -        err = hvm_funcs.load_msr(v, ctxt);
> > -
> > -    for ( i = 0; !err && i < ctxt->count; ++i )
> > +    for ( i = 0; i < ctxt->count; ++i )
> >      {
> >          switch ( ctxt->msr[i].index )
> >          {
> 
> err can become set to non-zero in the loop body further down from here,
> so I don't think you should alter the loop header.

True. Bailing early is a change of semantic, so I'll drop the check.

  Paul

> 
> Jan
> 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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