direct-io.hg

changeset 15216:6f13c3be08fa

Ensure CR0.TS is set for VMX domains regardless of the current
state of the real TS bit. This fixes a number of subtle FP
corruption issues within PV domains when running alongside VMX ones.

Signed-off-by: Steven Hand <steven@xensource.com>
author Steven Hand <steven@xensource.com>
date Mon Jun 04 16:47:48 2007 +0100 (2007-06-04)
parents c09dbe98e4d6
children 7a16a499152c
files xen/arch/x86/hvm/vmx/vmcs.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vmx/vmcs.c	Mon Jun 04 15:41:32 2007 +0100
     1.2 +++ b/xen/arch/x86/hvm/vmx/vmcs.c	Mon Jun 04 16:47:48 2007 +0100
     1.3 @@ -337,7 +337,7 @@ static void construct_vmcs(struct vcpu *
     1.4  #endif
     1.5  
     1.6      /* Host control registers. */
     1.7 -    __vmwrite(HOST_CR0, read_cr0());
     1.8 +    __vmwrite(HOST_CR0, read_cr0() | X86_CR0_TS);
     1.9      __vmwrite(HOST_CR4, read_cr4());
    1.10  
    1.11      /* Host CS:RIP. */