Re: [Xen-devel] [PATCH V4 3/4] x86/xsaves: enable xsaves/xrstors for hvm guest

2015-08-27 Thread Shuai Ruan
On Wed, Aug 26, 2015 at 11:36:53AM +0100, Andrew Cooper wrote: > On 25/08/15 11:54, Shuai Ruan wrote: > > This patch enables xsaves for hvm guest, includes: > > 1.handle xsaves vmcs init and vmexit. > > 2.add logic to write/read the XSS msr. > > > > Signed-off-by: Shuai Ruan > > Reviewed-by: Andr

Re: [Xen-devel] [PATCH V4 3/4] x86/xsaves: enable xsaves/xrstors for hvm guest

2015-08-26 Thread Jan Beulich
>>> On 25.08.15 at 12:54, wrote: > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -4540,6 +4540,33 @@ void hvm_cpuid(unsigned int input, unsigned int *eax, > unsigned int *ebx, > *ebx = _eax + _ebx; > } > } > +if ( count == 1 )

Re: [Xen-devel] [PATCH V4 3/4] x86/xsaves: enable xsaves/xrstors for hvm guest

2015-08-26 Thread Andrew Cooper
On 25/08/15 11:54, Shuai Ruan wrote: > This patch enables xsaves for hvm guest, includes: > 1.handle xsaves vmcs init and vmexit. > 2.add logic to write/read the XSS msr. > > Signed-off-by: Shuai Ruan Reviewed-by: Andrew Cooper , given two corrections... > --- > xen/arch/x86/hvm/hvm.c

[Xen-devel] [PATCH V4 3/4] x86/xsaves: enable xsaves/xrstors for hvm guest

2015-08-25 Thread Shuai Ruan
This patch enables xsaves for hvm guest, includes: 1.handle xsaves vmcs init and vmexit. 2.add logic to write/read the XSS msr. Signed-off-by: Shuai Ruan --- xen/arch/x86/hvm/hvm.c | 43 ++ xen/arch/x86/hvm/vmx/vmcs.c| 6 -- xen/arch/x