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] 64 bit Intel HVM Weirdness - setjmp\longjump fp exceptio

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] 64 bit Intel HVM Weirdness - setjmp\longjump fp exception in Xen, not on real hardware or AMD HVM
From: Allan Graves <allan.graves@xxxxxxxxxx>
Date: Sun, 01 Nov 2009 14:32:21 -0500
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 01 Nov 2009 11:33:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C712012C.18E90%keir.fraser@xxxxxxxxxxxxx>
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>
References: <C712012C.18E90%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)
Keir -

Hmm... according to /sys/hypervisor/version, I'm running 3.4.0.

Is there a reasonable chance this is fixed in 3.4.1? I haven't seen anything in the changelogs...


Allan



Keir Fraser wrote:
What version of Xen are you using? This bug may be fixed in Xen 3.3.2 and
Xen 3.4.1.

 -- Keir

On 30/10/2009 01:23, "Allan Graves" <allan.graves@xxxxxxxxxx> wrote:

(Please excuse double posting - I was told xen-users was not the right
list, to put it on xen-devel, as it was not a technical support query,
but an issue.)


The following program will crash with a fp exception on an INTEL 64 bit
HVM domU only:
#include <setjmp.h>
jmp_buf env; main() { if(setjmp(env)) return; longjmp(env, 1); }


This can be seen using both Linux and Windows 64 bit Guests.


My machine is a Core 2 Duo with both VT-D and VT-X extensions enabled.
Unfortunately, this is blocking our usage of 64 bit HVM Windows guests.

A similar issue was reported in KVM and recently fixed, some of their
analysis is below:
--------------------------------------------------
It seems that the problem can be reproduced by compiling the
following simple program using cygwin's gcc. The program crashes on
w2k3-amd64 on kvm-83 on core2-duo, and it does not crash on the
same w2k3-amd64 installation on kvm-83 on AMD Phenom.

#include <setjmp.h>

jmp_buf env; main() { if(setjmp(env)) return; longjmp(env, 1); }

The problem seems to be in the instruction ``mov gs,ax'' (Intel
syntax) in the longjmp() code. If I let the virtual machine execute
the instruction, the program crashes. However, if I step over the
instruction using the vs2008 debugger, the program completes
without crashing. Thus, I think that this is the instruction that
Avi is looking for, but I don't know how to proceed from here.
-------------------------------------------------------
http://markmail.org/message/owy3x7pf6oywdx5e#query:+page:1+mid:spz6vmdothb2njf
b+state:results


Anyone have a solution to this? :)

Allan





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



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