diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-11-18 09:22:45 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-11-18 09:22:45 +0100 |
commit | 04678eb8f30a83620fa2c960431dfe4fb40d86f2 (patch) | |
tree | c2caef081e1024ab7b765435f108b025f5aa12aa /xen/arch/x86/i387.c | |
parent | 8eca0db0e836a081d873de7e9eefb3763f065780 (diff) | |
download | xen-04678eb8f30a83620fa2c960431dfe4fb40d86f2.tar.gz xen-04678eb8f30a83620fa2c960431dfe4fb40d86f2.tar.bz2 xen-04678eb8f30a83620fa2c960431dfe4fb40d86f2.zip |
x86/xsave: provide guests with finit-like environment
Without the use of xsave, guests get their initial floating point
environment set up with finit. At least NetWare actually depends on
this (in particular on all exceptions being masked), so to be
consistent set the same environment also when using xsave. This is
also in line with all SSE exceptions getting masked initially.
To avoid further fragile casts in xstate_alloc_save_area() the patch
also changes xsave_struct's fpu_see member to have actually usable
fields.
The patch was tested in its technically identical, but modified-file-
wise different 4.1.2 version.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Charles Arnold <carnold@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/i387.c')
-rw-r--r-- | xen/arch/x86/i387.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/xen/arch/x86/i387.c b/xen/arch/x86/i387.c index 3b8eedc917..0ec2308e45 100644 --- a/xen/arch/x86/i387.c +++ b/xen/arch/x86/i387.c @@ -17,7 +17,6 @@ #include <asm/xstate.h> #include <asm/asm_defns.h> -#define MXCSR_DEFAULT 0x1f80 static void fpu_init(void) { unsigned long val; |