[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



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

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