WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Floating Point Exception when compiling w/ gcc

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Floating Point Exception when compiling w/ gcc
From: Robin Green <greenrd@xxxxxxxxxxxxx>
Date: Tue, 22 Feb 2005 14:26:32 -0500 (EST)
Delivery-date: Tue, 22 Feb 2005 19:29:54 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
On Tue, 22 Feb 2005, Georgi Mungov wrote:
Hi,
I've received twice a floating point exception on a different virtual machines
during compilation. The first time it was with mysql, the second - kernel
2.6.0. After I ran "make" again the compilation finished without problems.

I found a floating-point bug in xen-unstable, which, since I don't know
what causes it, might also be present in xen 2.0.4. (See thread
"reproducable data corruption in xen-unstable".)

HOWEVER, I did create a workaround patch, which effectively solves the
problem for me. Remember to apply this patch both to xen0 and xenU
kernels. Here it is:

--- arch/xen/i386/kernel/process.c.orig 2005-02-12 03:39:44.000000000 +0000
+++ arch/xen/i386/kernel/process.c      2005-02-13 02:46:03.000000000 +0000
@@ -563,6 +563,8 @@
          if (prev_p->thread_info->status & TS_USEDFPU) {
                  save_init_fpu(prev_p);
                  queue_multicall0(__HYPERVISOR_fpu_taskswitch);
+       } else {
+               stts ();
          }

          /*

I'm using Xen 2.0.4 build from sources on kernel 2.6.10 installed on standard
slackware 9.1. The machine is PIII w/ 512MB ram running 4 VM, each with 64MB
ram. The two errors happened on different VM.

My machine is an Athlon XP, so this shows that it isn't some strange
AMD-only bug (unless of course you have found a _different_
floating-point bug). Thanks for the bug report!

--
Robin


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel