[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] About the Thread model in Qemu 【 Is it one thread per v
From: |
Laszlo Ersek |
Subject: |
Re: [Qemu-devel] About the Thread model in Qemu 【 Is it one thread per vcpu?】 |
Date: |
Tue, 12 Mar 2013 23:26:07 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130216 Thunderbird/17.0.3 |
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]