aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xen/arch/x86/i387.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/arch/x86/i387.c b/xen/arch/x86/i387.c
index bba14ca978..011a55ad0c 100644
--- a/xen/arch/x86/i387.c
+++ b/xen/arch/x86/i387.c
@@ -103,9 +103,9 @@ void setup_fpu(struct vcpu *v)
{
/*
* XCR0 normally represents what guest OS set. In case of Xen itself,
- * we set all supported feature mask before doing save/restore.
+ * we set all supported feature mask before restoring.
*/
- set_xcr0(v->arch.xcr0_accum);
+ set_xcr0(xfeature_mask);
xrstor(v);
set_xcr0(v->arch.xcr0);
}
@@ -149,7 +149,7 @@ void save_init_fpu(struct vcpu *v)
if ( xsave_enabled(v) )
{
/* XCR0 normally represents what guest OS set. In case of Xen itself,
- * we set all accumulated feature mask before doing save/restore.
+ * we set all accumulated feature mask before saving.
*/
set_xcr0(v->arch.xcr0_accum);
if ( cpu_has_xsaveopt )