rpms/kernel-xen-2.6/devel xen-vmx-fpu-ts-fix.patch, NONE, 1.1 kernel-xen.spec, 1.56, 1.57

Eduardo Habkost (ehabkost) fedora-extras-commits at redhat.com
Thu Sep 20 18:18:56 UTC 2007


Author: ehabkost

Update of /cvs/pkgs/rpms/kernel-xen-2.6/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15447

Modified Files:
	kernel-xen.spec 
Added Files:
	xen-vmx-fpu-ts-fix.patch 
Log Message:
Add fix for bug #294011 (floating point corruption)

Changeset 8c24767501ff from Xen 3.1.1


xen-vmx-fpu-ts-fix.patch:

--- NEW FILE xen-vmx-fpu-ts-fix.patch ---
# HG changeset patch
# User Steven Hand <steven at xensource.com>
# Date 1189784017 -3600
# Node ID 8c24767501ff25f28a0dab638116b560de294da7
# Parent  eec47edb2a25fde7075e2e17dee638216d2e5582
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 at xensource.com>
xen-unstable changeset: 15216:6f13c3be08fa4c044868144672783f7b1341999a
xen-unstable date: Mon Jun 04 16:47:48 2007 +0100

diff -r eec47edb2a25 -r 8c24767501ff xen/arch/x86/hvm/vmx/vmcs.c
--- a/xen/arch/x86/hvm/vmx/vmcs.c	Fri Sep 14 16:33:37 2007 +0100
+++ b/xen/arch/x86/hvm/vmx/vmcs.c	Fri Sep 14 16:33:37 2007 +0100
@@ -338,7 +338,7 @@ static void construct_vmcs(struct vcpu *
 #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. */


Index: kernel-xen.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel-xen-2.6/devel/kernel-xen.spec,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- kernel-xen.spec	13 Sep 2007 23:14:06 -0000	1.56
+++ kernel-xen.spec	20 Sep 2007 18:18:24 -0000	1.57
@@ -636,6 +636,12 @@
 # Fix graphical boot (e.g. F7 DVD booting) under Full Virtualization
 Patch20002: xen-vpic-irqbase-mode.patch
 
+# Fix bz#294011: floating point corruption issues
+# changeset 8c24767501ff from Xen 3.1.1
+Patch20003: xen-vmx-fpu-ts-fix.patch
+
+
+
 # END OF PATCH DEFINITIONS
 
 BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root-%{_target_cpu}
@@ -1446,6 +1452,7 @@
 %patch20000 -p1
 %patch20001 -p1
 %patch20002 -p1
+%patch20003 -p1
 
 cd xen/
 # Update the Makefile version strings
@@ -2368,6 +2375,10 @@
 #  - tux.
 
 %changelog
+* Thu Sep 20 2007 Eduardo Habkost <ehabkost at redhat.com>
+- Add fix for bug #294011 (floating point corruption)
+  (changeset 8c24767501ff from Xen 3.1.1)
+
 * Thu Sep 13 2007 Eduardo Habkost <ehabkost at redhat.com>
 - Rebase to 2.6.21.7
 




More information about the fedora-extras-commits mailing list