qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: 解壁伟 <xiebiwei@ict.ac.cn>
To: Laszlo Ersek <lersek@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] About the Thread model in Qemu【 Is it one thread per vcpu?】
Date: Wed, 13 Mar 2013 16:59:42 +0800	[thread overview]
Message-ID: <51403FFE.8000208@ict.ac.cn> (raw)
In-Reply-To: <513FAB7F.3040000@redhat.com>

Thank you very much.

I've find the generation of thread in qemu, following your advice.

qemu_init_vcpu() --> qemu_kvm_start_vcpu() [cpus.c]

puck

于 2013/3/13 6:26, Laszlo Ersek 写道:
> On 03/12/13 10:34, 解壁伟 wrote:
>> Hi there:
>>
>> I've read this an article discribe the thread model in Qemu.
>> http://blog.vmsplice.net/2011/03/qemu-internals-overall-architecture-and.html
>> Is there really one thread per vcpu in qemu?
>>
>> When I run the qemu using "-smp 16", I can see only two threads using
>> "ps -xH".
> What ps is that? I'd try ps -efL.
>
>> So I want to know that if qemu excuting the vcpu in one thread per vcpu way?
>>
>> or, qemu simply excuting all the vcpus in one thread?
>>
>> How can I trace the generation of the vcpu thread?
> qemu_init_vcpu() --> qemu_kvm_start_vcpu() [cpus.c]
>
>

  reply	other threads:[~2013-03-13  9:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-12  9:34 [Qemu-devel] About the Thread model in Qemu【 Is it one thread per vcpu?】 解壁伟
2013-03-12 22:26 ` Laszlo Ersek
2013-03-13  8:59   ` 解壁伟 [this message]
2013-03-13  8:45 ` Stefan Hajnoczi
2013-03-13  9:32   ` 解壁伟
2013-03-13  9:51     ` Peter Maydell
2013-03-13  9:56       ` Laurent Desnogues
2013-03-13 12:21         ` Paolo Bonzini
2013-04-15 14:43 ` [Qemu-devel] Round robin of multi-vcpu in qemu 解壁伟
2013-04-23  1:25   ` 陳韋任 (Wei-Ren Chen)

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=51403FFE.8000208@ict.ac.cn \
    --to=xiebiwei@ict.ac.cn \
    --cc=lersek@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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).