Re: [Qemu-devel] Fiber switching and stack protection

2012-04-16 Thread Pavel Dovgaluk
> Il 16/04/2012 08:24, Pavel Dovgaluk ha scritto: > > By the way, I also created implementation of coroutine-win32.c, > > which uses WinAPI TLS functions directly (without using __thread > > specifiers). > > It works fine too. > > Cool, can you submit it? I submitted the patch in a separate m

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-16 Thread Paolo Bonzini
Il 16/04/2012 08:24, Pavel Dovgaluk ha scritto: > By the way, I also created implementation of coroutine-win32.c, which > uses WinAPI TLS functions directly (without using __thread specifiers). > It works fine too. Cool, can you submit it? Paolo

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-15 Thread Roy Tam
2012/4/16 Pavel Dovgaluk : > >[snipped] > >  By the way, I also created implementation of coroutine-win32.c, which > uses WinAPI TLS functions directly (without using __thread specifiers). > It works fine too. > Patch is welcome. :D > > Pavel Dovgaluk > >

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-15 Thread Pavel Dovgaluk
> > Paolo, wasn't there a compiler option that works around the problem? > > > I asked to test it (-D_MT) but never got any answer. > >>> > >>> I'd be surprised if defining _MT helped against compiler bugs. > >> > >> Well, -mthreads fixed it, and it should be the same as -D_MT > >> -l

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-13 Thread Bob Breuer
On 4/13/2012 6:25 AM, Pavel Dovgaluk wrote: >> -Original Message- >> From: Paolo Bonzini [mailto:pbonz...@redhat.com] >> Sent: Thursday, April 12, 2012 8:57 PM >> To: Stefan Weil >> Cc: Kevin Wolf; 'qemu-devel'; Pavel Dovgaluk >> Subje

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-13 Thread Pavel Dovgaluk
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Thursday, April 12, 2012 8:57 PM > To: Stefan Weil > Cc: Kevin Wolf; 'qemu-devel'; Pavel Dovgaluk > Subject: Re: [Qemu-devel] Fiber switching and stack protection > > I

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-12 Thread Paolo Bonzini
Il 12/04/2012 18:31, Stefan Weil ha scritto: > Am 12.04.2012 12:18, schrieb Paolo Bonzini: >> Il 12/04/2012 12:13, Kevin Wolf ha scritto: >>> I guess it's this non-thread-local TLS once again, basically a >>> compiler bug. >>> >>> Paolo, wasn't there a compiler option that works around the problem?

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-12 Thread Stefan Weil
Am 12.04.2012 12:18, schrieb Paolo Bonzini: Il 12/04/2012 12:13, Kevin Wolf ha scritto: I guess it's this non-thread-local TLS once again, basically a compiler bug. Paolo, wasn't there a compiler option that works around the problem? Kevin I asked to test it (-D_MT) but never got any answer.

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-12 Thread Paolo Bonzini
Il 12/04/2012 12:13, Kevin Wolf ha scritto: > I guess it's this non-thread-local TLS once again, basically a compiler bug. > > Paolo, wasn't there a compiler option that works around the problem? > > Kevin I asked to test it (-D_MT) but never got any answer. Paolo

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-12 Thread Kevin Wolf
Am 06.04.2012 12:38, schrieb Pavel Dovgaluk: > Hello. > > > > Recently I tried to build qemu-1.0 with MinGW and start it with qcow > file created with previous version of qemu. > > But after starting guest Windows loading process qemu had closed because > of an exception. > > > > I figured

[Qemu-devel] Fiber switching and stack protection

2012-04-06 Thread Pavel Dovgaluk
Hello. Recently I tried to build qemu-1.0 with MinGW and start it with qcow file created with previous version of qemu. But after starting guest Windows loading process qemu had closed because of an exception. I figured out that this exception is "stack smashing" and it happened in qemu