Re: [Xen-devel] [V6 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-10-14 Thread Jan Beulich
>>> On 15.10.15 at 03:58, wrote: > On Tue, Oct 13, 2015 at 07:49:12AM -0600, Jan Beulich wrote: >> >>> On 12.10.15 at 08:07, wrote: >> >> > @@ -2257,9 +2261,14 @@ static int hvm_load_cpu_xsave_states(struct domain > *d, hvm_domain_context_t *h) >> > v->arch.xcr0_accum = ctxt->xcr0_accum; >

Re: [Xen-devel] [V6 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-10-14 Thread Shuai Ruan
On Tue, Oct 13, 2015 at 07:49:12AM -0600, Jan Beulich wrote: > >>> On 12.10.15 at 08:07, wrote: > > > @@ -2257,9 +2261,14 @@ static int hvm_load_cpu_xsave_states(struct domain > > *d, hvm_domain_context_t *h) > > v->arch.xcr0_accum = ctxt->xcr0_accum; > > if ( ctxt->xcr0_accum & XSTATE

Re: [Xen-devel] [V6 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-10-13 Thread Jan Beulich
>>> On 12.10.15 at 08:07, wrote: > --- a/xen/arch/x86/domctl.c > +++ b/xen/arch/x86/domctl.c > @@ -897,9 +897,30 @@ long arch_do_domctl( > ret = -EFAULT; > > offset += sizeof(v->arch.xcr0_accum); > -if ( !ret && copy_to_guest_offset(evc->buffer, offset,

Re: [Xen-devel] [V6 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-10-13 Thread Shuai Ruan
On Mon, Oct 12, 2015 at 11:05:33AM +0100, Andrew Cooper wrote: > On 12/10/15 07:07, Shuai Ruan wrote: > > This patch uses xsaves/xrstors/xsavec instead of xsaveopt/xrstor > > to perform the xsave_area switching so that xen itself > > can benefit from them when available. > > > > For xsaves/xrstors/

Re: [Xen-devel] [V6 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-10-12 Thread Andrew Cooper
On 12/10/15 07:07, Shuai Ruan wrote: > This patch uses xsaves/xrstors/xsavec instead of xsaveopt/xrstor > to perform the xsave_area switching so that xen itself > can benefit from them when available. > > For xsaves/xrstors/xsavec only use compact format. Add format conversion > support when perfor

[Xen-devel] [V6 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-10-11 Thread Shuai Ruan
This patch uses xsaves/xrstors/xsavec instead of xsaveopt/xrstor to perform the xsave_area switching so that xen itself can benefit from them when available. For xsaves/xrstors/xsavec only use compact format. Add format conversion support when perform guest os migration. Also, pv guest will not s