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

[Xen-changelog] [xen stable-4.11] x86/HVM: attempts to emulate FPU insns need to set fpu_initialised



commit 1c88cadbe57b5c3a5bfb35507fea1ba6eafee219
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Jun 26 08:54:14 2018 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Jun 26 08:54:14 2018 +0200

    x86/HVM: attempts to emulate FPU insns need to set fpu_initialised
    
    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>
    Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Acked-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
    Release-acked-by: Juergen Gross <jgross@xxxxxxxx>
    master commit: 3310e3cd648f3713c824790bd71d8ec405a09d05
    master date: 2018-06-26 08:41:08 +0200
---
 xen/arch/x86/hvm/emulate.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c
index 03a4944e88..7ecee12ffc 100644
--- 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 )
         {
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.11

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

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