]> xenbits.xensource.com Git - xen.git/commitdiff
x86/xstate: undo bogus adjustment to xsave()
authorJan Beulich <jbeulich@suse.com>
Thu, 10 Mar 2016 15:47:02 +0000 (16:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Mar 2016 15:47:02 +0000 (16:47 +0100)
This reverts an unintended change in commit 879b44b041 ("x86/fpu: add
a per-domain field to set the width of FIP/FDP"), which I had done
intermediately while fixing the build issue: After having reverted that
adjustment I must have forgotten to "git add" the adjustment.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/xstate.c

index 8316bd98a98e3ae8f6e7a24733a3320d67688af3..a5ed9e5465b8c7e20b7687d2f441f438da24a7fb 100644 (file)
@@ -292,7 +292,7 @@ void xsave(struct vcpu *v, uint64_t mask)
 
         XSAVE("0x48,");
 
-        if ( !(ptr->xsave_hdr.xstate_bv & XSTATE_FP) ||
+        if ( !(mask & ptr->xsave_hdr.xstate_bv & XSTATE_FP) ||
              /*
               * AMD CPUs don't save/restore FDP/FIP/FOP unless an exception
               * is pending.