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

Re: [Xen-devel] [PATCH 2/3] x86/xsaves: fix overwriting between non-lazy/lazy xsave[sc]



>>> On 22.02.16 at 06:35, <shuai.ruan@xxxxxxxxxxxxxxx> wrote:

First of all I wonder on what basis you collect your Cc lists on
patches.

> --- a/xen/arch/x86/i387.c
> +++ b/xen/arch/x86/i387.c
> @@ -118,7 +118,7 @@ static inline uint64_t vcpu_xsave_mask(const struct vcpu 
> *v)
>      if ( v->fpu_dirtied )
>          return v->arch.nonlazy_xstate_used ? XSTATE_ALL : XSTATE_LAZY;
>  
> -    return v->arch.nonlazy_xstate_used ? XSTATE_NONLAZY : 0;
> +    return ( cpu_has_xsaves || cpu_has_xsavec ) ? XSTATE_ALL : 
> XSTATE_NONLAZY;
>  }

The description lacks any mention of the performance impact,
and what investigation was done to find ways to perhaps
overcome this. For example, regardless of cpu_has_xsaves,
do we really always need to _use_ XSAVES?

Also - coding style (stray spaces inside parentheses).

Jan


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


 


Rackspace

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