> On Thu, Jan 26, 2012 at 1:35 PM, Paolo Bonzini <pbonz...@redhat.com> 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 spawns these threads and what do these threads do ? > > > > > > The block layer's thread pool.
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. HTH, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj