Re: [Xen-devel] [V7 1/4] x86/xsaves: add basic definitions/helpers to support xsaves

2015-10-21 Thread Shuai Ruan
On Tue, Oct 20, 2015 at 02:26:46PM +0100, Andrew Cooper wrote: > On 20/10/15 09:21, Shuai Ruan wrote: > > This patch add basic definitions/helpers which will be used in > > later patches. > > > *this_xss = xss; > > Using this_cpu() multiple times cannot be optimised by compiler (because > of the u

Re: [Xen-devel] [V7 1/4] x86/xsaves: add basic definitions/helpers to support xsaves

2015-10-20 Thread Andrew Cooper
On 20/10/15 09:21, Shuai Ruan wrote: > This patch add basic definitions/helpers which will be used in > later patches. > > Signed-off-by: Shuai Ruan > Reviewed-by: Andrew Cooper > --- > xen/arch/x86/xstate.c | 19 +++ > xen/include/asm-x86/hvm/vcpu.h | 1 + > xen/incl

[Xen-devel] [V7 1/4] x86/xsaves: add basic definitions/helpers to support xsaves

2015-10-20 Thread Shuai Ruan
This patch add basic definitions/helpers which will be used in later patches. Signed-off-by: Shuai Ruan Reviewed-by: Andrew Cooper --- xen/arch/x86/xstate.c | 19 +++ xen/include/asm-x86/hvm/vcpu.h | 1 + xen/include/asm-x86/msr-index.h | 2 ++ xen/include/asm-x86/x