mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
7fe901b954
commit
6ef7b1c696
1 file changed
+1
-1
@@ -337,7 +337,7 @@ static void construct_vmcs(struct vcpu *v)
|
||||
#endif
|
||||
|
||||
/* Host control registers. */
|
||||
__vmwrite(HOST_CR0, read_cr0());
|
||||
__vmwrite(HOST_CR0, read_cr0() | X86_CR0_TS);
|
||||
__vmwrite(HOST_CR4, read_cr4());
|
||||
|
||||
/* Host CS:RIP. */
|
||||
|
||||