xen trouble while guest excute float app
I have a trouble with floating point number when I use xen. First I work on openSUSE 11.3, with xen-4.0.0_21091_05-6.6.x86_64. I create a windows XP domU, and make a simple program dealing with floating point number by Visual C++ 6. The program is:
void BUG()
{
while(1);
}func()
{
float f = 1;
while(1)
{
TRACE(“f = %f\n”, f);
if(f < 0)
BUG();
Sleep(1000); }
}
When I use “xm migrate –live win1 hosta”, (hosta is the same computer), sometime print f = -1.#IND0, sometime goto BUG(). Why()?
Then I use xen-4.0.1-rc6, the same thing happen. Is this a BUG of xen?
My CPU is Intel Xeon L5408.When I use other CPU, for example Xeon L5420,I rarely meet the problem.
2010-09-06
ywzheng
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 40 lines · ywzheng
I have a trouble with floating point number when I use xen. First I work
on openSUSE 11.3, with xen-4.0.0_21091_05-6.6.x86_64. I create a windows
XP domU, and make a simple program dealing with floating point number by
Visual C++ 6. The program is:
void BUG()
{
while(1);
}
func()
{
float f = 1;
while(1)
{
TRACE("f = %f\n", f);
if(f < 0)
BUG();
Sleep(1000);
}
}
When I use "xm migrate -live win1 hosta", (hosta is the same computer),Quoted 10 lines
sometime print f = -1.#IND0, sometime goto BUG(). Why()? Then I use xen-4.0.1-rc6, the same thing happen. Is this a BUG of xen? My CPU is Intel Xeon L5408.When I use other CPU, for example Xeon L5420,I rarely meet the problem.
Hello,
Interesting problem..
Did you try just save/restore of the VM? Does it show the same issue? Or is it only during live migration?
-- Pasi
Quoted 3 lines · ywzheng
When I use ?xm migrate ?live win1 hosta?, (hosta is the same computer), sometime print f = -1.#IND0, sometime goto
BUG().Why()?Then I use xen-4.0.1-rc6, the same thing happen. Is this a BUG of xen?
Yes, this bug was introduced by Intel's patches to support XSAVE, which broke save/restore. Unfortunately it was only fixed very recently so it's not fixed in 4.0.1; you'll need the very latest 4.0-testing Xen.
Cheers,
Tim.
Quoted 5 lines
My CPU is Intel Xeon L5408.When I use other CPU, for example Xeon L5420,I rarely meet the problem.
2010-09-06
________________________________
ywzheng
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
Quoted 9 lines · Tim Deegan
Quoted 3 lines · ywzheng
When I use ?xm migrate ?live win1 hosta?, (hosta is the same computer), sometime print f = -1.#IND0, sometime goto
BUG().Why()?Then I use xen-4.0.1-rc6, the same thing happen. Is this a BUG of xen?
Yes, this bug was introduced by Intel's patches to support XSAVE, which broke save/restore. Unfortunately it was only fixed very recently so it's not fixed in 4.0.1; you'll need the very latest 4.0-testing Xen.
Ok, so it's fixed in here: http://xenbits.xen.org/xen-4.0-testing.hg
"5 days ago: x86 intel: Disable XSAVE support."
-- Pasi
Quoted 9 lines · Tim Deegan
Quoted 4 lines · ywzheng
When I use ?xm migrate ?live win1 hosta?, (hosta is the same computer), sometime print f = -1.#IND0, sometime goto
BUG().Why()?Then I use xen-4.0.1-rc6, the same thing happen. Is this a BUG of xen?
Yes, this bug was introduced by Intel's patches to support XSAVE, which broke save/restore. Unfortunately it was only fixed very recently so it's not fixed in 4.0.1; you'll need the very latest 4.0-testing Xen.
Or you can just add no-xsave to the Xen command line.
Quoted 10 lines
Cheers,
Tim.
Quoted 6 lines
My CPU is Intel Xeon L5408.When I use other CPU, for example Xeon L5420,I rarely meet the problem.
2010-09-06
________________________________
ywzheng
Thanks
I will try it.
2010-09-06
ywzheng
发件人: Pasi K鋜kk鋓nen
发送时间: 2010-09-06 18:48:00
收件人: Tim Deegan
抄送: ywzheng; xen-devel
主题: Re: [Xen-devel] xen trouble while guest excute float app
Quoted 9 lines · Tim Deegan
Quoted 3 lines · ywzheng
When I use ?xm migrate ?live win1 hosta?, (hosta is the same computer), sometime print f = -1.#IND0, sometime goto
BUG().Why()?Then I use xen-4.0.1-rc6, the same thing happen. Is this a BUG of xen?
Yes, this bug was introduced by Intel's patches to support XSAVE, which broke save/restore. Unfortunately it was only fixed very recently so it's not fixed in 4.0.1; you'll need the very latest 4.0-testing Xen.
Ok, so it's fixed in here: http://xenbits.xen.org/xen-4.0-testing.hg
"5 days ago: x86 intel: Disable XSAVE support."
-- Pasi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel