[Qemu-devel] About the Thread model in Qemu【 Is it one thread per vcpu?】

2013-03-12 Thread
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". So I want to know that

Re: [Qemu-devel] About the Thread model in Qemu【 Is it one thread per vcpu?】

2013-03-13 Thread
er exploration. For now, I need a emulator to emulate more cores efficiently.I want to analyze whether Qemu can be faster when it emulate more cores, while parallelism maybe a good choice. puck 于 2013/3/13 16:45, Stefan Hajnoczi 写道: On Tue, Mar 12, 2013 at 05:34:24PM +0800, 解壁伟 wrote:

Re: [Qemu-devel] About the Thread model in Qemu【 Is it one thread per vcpu?】

2013-03-13 Thread
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

[Qemu-devel] Round robin of multi-vcpu in qemu

2013-04-15 Thread
Hi there: I'm studying the execution details of multi-vcpu in TCG mode. The vcpus in TCG mode are executed one by one in a sequencial way. I read the function [tcg_exec_all] in Qemu 1.3.0 as bellow, but the implementation is not as I expected. [tcg_exec_all] will finally call [cpu_exec] to excu