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

[Xen-devel] Ping: [PATCH] x86: improve vCPU selection in pagetable_dying()



>>> On 10.09.18 at 16:02, <JBeulich@xxxxxxxx> wrote:
> Rather than unconditionally using vCPU 0, use the current vCPU if the
> subject domain is the current one.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> 
> --- a/xen/arch/x86/mm/paging.c
> +++ b/xen/arch/x86/mm/paging.c
> @@ -858,7 +858,7 @@ void pagetable_dying(struct domain *d, p
>  
>      ASSERT(paging_mode_shadow(d));
>  
> -    v = d->vcpu[0];
> +    v = (d == current->domain) ? current : d->vcpu[0];
>      v->arch.paging.mode->shadow.pagetable_dying(v, gpa);
>  #else
>      BUG();



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