From: 陳韋任 <chenwj@iis.sinica.edu.tw>
To: Xin Tong <xerox.time.tech@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] spawning and killing threads in qemu
Date: Mon, 30 Jan 2012 17:52:48 +0800 [thread overview]
Message-ID: <20120130095248.GA44267@cs.nctu.edu.tw> (raw)
In-Reply-To: <CALKntY25dUCfq9Yh8Y_H73hoodeN5gqPR04jkw8J=H+UH2AChg@mail.gmail.com>
> On Thu, Jan 26, 2012 at 1:35 PM, Paolo Bonzini <pbonzini@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
next prev parent reply other threads:[~2012-01-30 9:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 18:31 [Qemu-devel] spawning and killing threads in qemu Xin Tong
2012-01-26 18:35 ` Paolo Bonzini
2012-01-26 19:22 ` Xin Tong
2012-01-30 9:52 ` 陳韋任 [this message]
2012-02-06 10:15 ` Stefan Hajnoczi
2012-02-07 2:44 ` 陳韋任
2012-02-07 10:25 ` Stefan Hajnoczi
2012-02-09 2:40 ` Xin Tong
2012-02-09 3:19 ` 陳韋任
2012-02-09 7:15 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120130095248.GA44267@cs.nctu.edu.tw \
--to=chenwj@iis.sinica.edu.tw \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=xerox.time.tech@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).