Re: [Qemu-devel] spawning and killing threads in qemu

2012-02-09 Thread 陳韋任
On Wed, Feb 08, 2012 at 09:40:08PM -0500, Xin Tong wrote: > can you show me where these threads get created in the qemu code ? If you mean vcpu thread, see cpu_x86_init (target-i386/helper.c). At the end of this function, CPUX86State *cpu_x86_init(const char *cpu_model) { qemu_init_vcpu(en

Re: [Qemu-devel] spawning and killing threads in qemu

2012-02-08 Thread Paolo Bonzini
On 02/09/2012 03:40 AM, Xin Tong wrote: can you show me where these threads get created in the qemu code ? It's in posix-aio-compat.c. The code is invoked by block/raw-posix.c. Paolo

Re: [Qemu-devel] spawning and killing threads in qemu

2012-02-08 Thread Xin Tong
can you show me where these threads get created in the qemu code ? Thanks Xin On Tue, Feb 7, 2012 at 5:25 AM, Stefan Hajnoczi wrote: > 2012/2/7 陳韋任 : >> Hi Stefan, >> >>  Thanks for the explanation. :) >> >>> >   Qemu 1.0 enable IO thread by default, I think that's why you can see >>> > ther

Re: [Qemu-devel] spawning and killing threads in qemu

2012-02-07 Thread 陳韋任
Hi Stefan, Thanks for the explanation. :) > > Qemu 1.0 enable IO thread by default, I think that's why you can see > > there are > > two threads. You can check block/raw-posix-aio.h, posix-aio-compat.c and > > linux-aio.c. > > --enable-io-thread is different from posix-aio-compat.c's threa

Re: [Qemu-devel] spawning and killing threads in qemu

2012-02-07 Thread Stefan Hajnoczi
2012/2/7 陳韋任 : > Hi Stefan, > >  Thanks for the explanation. :) > >> >   Qemu 1.0 enable IO thread by default, I think that's why you can see >> > there are >> > two threads. You can check block/raw-posix-aio.h, posix-aio-compat.c and >> > linux-aio.c. >> >> --enable-io-thread is different from p

Re: [Qemu-devel] spawning and killing threads in qemu

2012-02-06 Thread Stefan Hajnoczi
On Mon, Jan 30, 2012 at 05:52:48PM +0800, 陳韋任 wrote: > > On Thu, Jan 26, 2012 at 1:35 PM, Paolo Bonzini wrote: > > > On 01/26/2012 07:31 PM, Xin Tong wrote: > > >> > > >> When i attach gdb to qemu running in system mode, i often get things like > > >> > > >> [Thread 0x7ffed2013700 (LWP 29499) exit

Re: [Qemu-devel] spawning and killing threads in qemu

2012-01-30 Thread 陳韋任
> On Thu, Jan 26, 2012 at 1:35 PM, Paolo Bonzini wrote: > > On 01/26/2012 07:31 PM, Xin Tong wrote: > >> > >> When i attach gdb to qemu running in system mode, i often get things like > >> > >> [Thread 0x7ffed2013700 (LWP 29499) exited] > >> [New Thread 0x7ffed2013700 (LWP 29500)] > >> > >> what s

Re: [Qemu-devel] spawning and killing threads in qemu

2012-01-26 Thread Xin Tong
what is that, can you please briefly explain ? Thanks Xin On Thu, Jan 26, 2012 at 1:35 PM, Paolo Bonzini wrote: > On 01/26/2012 07:31 PM, Xin Tong wrote: >> >> When i attach gdb to qemu running in system mode, i often get things like >> >> [Thread 0x7ffed2013700 (LWP 29499) exited] >> [New Thr

Re: [Qemu-devel] spawning and killing threads in qemu

2012-01-26 Thread Paolo Bonzini
On 01/26/2012 07:31 PM, Xin Tong wrote: When i attach gdb to qemu running in system mode, i often get things like [Thread 0x7ffed2013700 (LWP 29499) exited] [New Thread 0x7ffed2013700 (LWP 29500)] what spawns these threads and what do these threads do ? The block layer's thread pool. Paolo

[Qemu-devel] spawning and killing threads in qemu

2012-01-26 Thread Xin Tong
When i attach gdb to qemu running in system mode, i often get things like [Thread 0x7ffed2013700 (LWP 29499) exited] [New Thread 0x7ffed2013700 (LWP 29500)] what spawns these threads and what do these threads do ?