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