aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/i387.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-15 00:15:11 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-15 00:15:11 +0100
commit91e612aea0725c21a814c10f46042bd1707aa4b6 (patch)
treece250b809c0c762dfc8ba7f0a4e516c3734e79fa /xen/include/asm-x86/i387.h
parentb42ab5370e969d28569ac14db3c921b401c0e855 (diff)
downloadxen-91e612aea0725c21a814c10f46042bd1707aa4b6.tar.gz
xen-91e612aea0725c21a814c10f46042bd1707aa4b6.tar.bz2
xen-91e612aea0725c21a814c10f46042bd1707aa4b6.zip
More fixes to HVM FPU management. Mostly for SVM, but also
fix VMX mov_to_cr0: must setup_fpu() if the new cr0 value has TS clear, regardless of previous cr0.TS value. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/i387.h')
-rw-r--r--xen/include/asm-x86/i387.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-x86/i387.h b/xen/include/asm-x86/i387.h
index f9216605ed..fa9ba43e90 100644
--- a/xen/include/asm-x86/i387.h
+++ b/xen/include/asm-x86/i387.h
@@ -33,6 +33,7 @@ static inline void setup_fpu(struct vcpu *v)
{
if ( !test_and_set_bit(_VCPUF_fpu_dirtied, &v->vcpu_flags) )
{
+ clts();
if ( test_bit(_VCPUF_fpu_initialised, &v->vcpu_flags) )
restore_fpu(v);
else