[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] floating-point arithmetic


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Anh Dinh <ug93tad@xxxxxxxxx>
  • Date: Sat, 18 Oct 2014 09:39:44 +0800
  • Delivery-date: Sat, 18 Oct 2014 01:40:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

I compiled Xen with the flag:

-mfpmath=sse -msse2

so that I can use double variables in implementing a hypercall inside Xen hypervisor.Â

However, the kernel crashes (computer reboots) when I do a lot (about a thousand) of memory copying of double values in the kernel space, i.e.

unsigned char* pt = xmalloc(unsigned char, sizeof(double));Â
memcpy(pt,&value,sizeof(double)); Â //<---- CRASHED HERE
...//do something with the variable
xfree(pt);Â


Would appreciate any suggestion.Â

Thanks,
Anh.Â



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.