Re: [Xen-devel] [V3] x86/xsaves: calculate the xstate_comp_offsets base on xcomp_bv

2016-03-07 Thread Jan Beulich
>>> On 07.03.16 at 11:19, wrote: > On Fri, Mar 04, 2016 at 06:56:35AM -0700, Jan Beulich wrote: >> >>> On 04.03.16 at 12:00, wrote: >> > --- a/xen/arch/x86/domctl.c >> > +++ b/xen/arch/x86/domctl.c >> > @@ -934,8 +934,14 @@ long arch_do_domctl( >> > goto vcpuextstate_out; >>

Re: [Xen-devel] [V3] x86/xsaves: calculate the xstate_comp_offsets base on xcomp_bv

2016-03-07 Thread Shuai Ruan
On Fri, Mar 04, 2016 at 06:56:35AM -0700, Jan Beulich wrote: > >>> On 04.03.16 at 12:00, wrote: > > --- a/xen/arch/x86/domctl.c > > +++ b/xen/arch/x86/domctl.c > > @@ -934,8 +934,14 @@ long arch_do_domctl( > > goto vcpuextstate_out; > > } > > > > -

Re: [Xen-devel] [V3] x86/xsaves: calculate the xstate_comp_offsets base on xcomp_bv

2016-03-04 Thread Jan Beulich
>>> On 04.03.16 at 12:00, wrote: > --- a/xen/arch/x86/domctl.c > +++ b/xen/arch/x86/domctl.c > @@ -934,8 +934,14 @@ long arch_do_domctl( > goto vcpuextstate_out; > } > > -expand_xsave_states(v, xsave_area, > -

[Xen-devel] [V3] x86/xsaves: calculate the xstate_comp_offsets base on xcomp_bv

2016-03-04 Thread Shuai Ruan
Previous patch using all available features calculate xstate_comp_offsets. This is wrong.This patch fix this bug by calculating the xstate_comp_offset based on xcomp_bv of current guest. Also, the xstate_comp_offset should take alignment into consideration. Signed-off-by: Shuai Ruan Reported-by: