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] Xen guest floating point problem

To: "Mick.Jordan@xxxxxxx" <Mick.Jordan@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Xen guest floating point problem
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 04 Aug 2009 09:16:05 +0100
Cc:
Delivery-date: Tue, 04 Aug 2009 01:17:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A7777F6.405@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcoUlX0vCh+eo3C8TOeSxYADJ5dTwAARlKZo
Thread-topic: [Xen-devel] Xen guest floating point problem
User-agent: Microsoft-Entourage/12.20.0.090605
On 04/08/2009 00:51, "Mick Jordan" <Mick.Jordan@xxxxxxx> wrote:

> We have a simple C test program that runs on our evolved version of
> Mini-OS (GUK) that exhibits sporadic non-deterministic failure regarding
> floating point computations (mostly calling the __ieee754_remainder
> method of fdlibm). Typically about 5 computations in 10000 fail, usually
> with Nan or Infinite values showing up. We are as convinced as we can be
> at this point that the GUK code is not corrupting the floating point
> state, so are down to two ideas. One is a bug in Xen on guest context
> switching or event delivery regarding the FP state. The other is that
> GUK is failing to obey some Xen API contract regarding FP state. For
> example, timer and xenstore events are being delivered during the run
> although we can't correlate them directly to the fault.
> 
> The program fails on both Solaris xVM 3.1.4, xVM 3.3, various Linux
> 3.1.4 systems, but does not fail when run on Solaris or Linux domUs.
> This points the finger at GUK but we are wondering whether they have a
> workaround for some problem we are not aware of.

I don't think the guest should have to do anything special regarding
handling FP state. Xen should automatically save/restore the state as
necessary. We had bugs in this area long ago, but they were fixed and I'd be
surprised if problems had crept back in.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>