Re: [Xen-devel] [V9 1/3] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-05 Thread Shuai Ruan
On Thu, Nov 05, 2015 at 03:13:01AM -0700, Jan Beulich wrote: > >>> On 05.11.15 at 10:57, wrote: > > Ok. So alternative_input will not used here (means use the way > > xrstor in Patch 8)? Or put the XSTATE_FIXUP into alternative_input ? > > Which one is ok to you ? > > The latter, if necessary by

Re: [Xen-devel] [V9 1/3] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-05 Thread Jan Beulich
>>> On 05.11.15 at 10:57, wrote: > Ok. So alternative_input will not used here (means use the way > xrstor in Patch 8)? Or put the XSTATE_FIXUP into alternative_input ? > Which one is ok to you ? The latter, if necessary by extending alternative_input() accordingly (or provide a second, more flex

Re: [Xen-devel] [V9 1/3] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-05 Thread Shuai Ruan
On Thu, Nov 05, 2015 at 02:06:25AM -0700, Jan Beulich wrote: > >>> On 05.11.15 at 02:34, wrote: > > On Wed, Nov 04, 2015 at 10:04:33AM -0700, Jan Beulich wrote: > >> >>> On 03.11.15 at 07:27, wrote: > >> > @@ -158,6 +334,20 @@ void xsave(struct vcpu *v, uint64_t mask) > >> > case 4: case 2:

Re: [Xen-devel] [V9 1/3] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-05 Thread Jan Beulich
>>> On 05.11.15 at 02:34, wrote: > On Wed, Nov 04, 2015 at 10:04:33AM -0700, Jan Beulich wrote: >> >>> On 03.11.15 at 07:27, wrote: >> > @@ -158,6 +334,20 @@ void xsave(struct vcpu *v, uint64_t mask) >> > ptr->fpu_sse.x[FPU_WORD_SIZE_OFFSET] = word_size; >> > } >> > +#define XSTATE_FIXU

Re: [Xen-devel] [V9 1/3] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-04 Thread Shuai Ruan
On Wed, Nov 04, 2015 at 10:04:33AM -0700, Jan Beulich wrote: > >>> On 03.11.15 at 07:27, wrote: > > diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c > > index fe3be30..108d4f8 100644 > > --- a/xen/arch/x86/domain.c > > +++ b/xen/arch/x86/domain.c > > @@ -883,7 +883,12 @@ int arch_set_inf

Re: [Xen-devel] [V9 1/3] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-04 Thread Jan Beulich
>>> On 03.11.15 at 07:27, 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 perform

[Xen-devel] [V9 1/3] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-02 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