>>> 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;
>>
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;
> > }
> >
> > -
>>> 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,
> -
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: