> -----Original Message-----
> From: Jan Beulich [mailto:[email protected]]
> Sent: 22 June 2018 11:53
> To: Paul Durrant <[email protected]>
> Cc: Andrew Cooper <[email protected]>; xen-devel <xen-
> [email protected]>; Juergen Gross <[email protected]>
> Subject: Ping: [PATCH 2/2] x86/HVM: attempts to emulate FPU insns need to
> set fpu_initialised
> 
> >>> On 15.06.18 at 10:58, <[email protected]> wrote:
> > My original way of thinking here was that this would be set anyway at
> > the point state gets reloaded after the adjustments hvmemul_put_fpu()
> > does, but the flag should already be set before that - after all the
> > guest may never again touch the FPU before e.g. getting migrated/saved.
> >
> > Signed-off-by: Jan Beulich <[email protected]>
> >
> > --- a/xen/arch/x86/hvm/emulate.c
> > +++ b/xen/arch/x86/hvm/emulate.c
> > @@ -2053,6 +2053,7 @@ static int hvmemul_get_fpu(
> >           * masking of all exceptions by FNSTENV.)
> >           */
> >          save_fpu_enable();
> > +        curr->fpu_initialised = true;
> >          curr->fpu_dirtied = true;
> >          if ( (fpu_ctxt->fcw & 0x3f) != 0x3f )
> >          {
> 

Apologies for the delay...

Acked-by: Paul Durrant <[email protected]>


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to