[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Ping: [PATCH 2/2] x86/HVM: attempts to emulate FPU insns need to set fpu_initialised



>>> On 15.06.18 at 10:58, <JBeulich@xxxxxxxx> 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 <jbeulich@xxxxxxxx>
> 
> --- 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 )
>          {



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.