[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: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] About the Thread model in Qemu【 Is it one thread per vcpu?】 |
Date: |
Wed, 13 Mar 2013 09:45:40 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Mar 12, 2013 at 05:34:24PM +0800, 解壁伟 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".
"Note that TCG is not thread-safe so even under the iothread model it
multiplexes vcpus across a single QEMU thread. Only KVM can take
advantage of per-vcpu threads."
If you do not have -enable-kvm then you're probably using TCG.
Stefan