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

2013-03-13 Thread Paolo Bonzini
Il 13/03/2013 10:56, Laurent Desnogues ha scritto: >> > There has been some other research work with QEMU in this >> > area, you should probably look it up. However it has all been >> > "we fixed enough of the big problems to be able to run some >> > benchmarks and write our research paper", so non

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

2013-03-13 Thread Laurent Desnogues
On Wed, Mar 13, 2013 at 10:51 AM, Peter Maydell wrote: [...] >> 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. > > There has been some other research work with QEMU i

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

2013-03-13 Thread Peter Maydell
On 13 March 2013 09:32, 解壁伟 wrote: > I read the article again, and I get the answer to my question in that > paragraph. > Thank you very much. > As you've said, TCG's not thread-safe. > Is it only the shared data structure(e.g TB) that prevent TCG to be > thread-safe? I'm seeking a method to paral

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 discribe the thread model in Qemu. >>

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

2013-03-13 Thread 解壁伟
I read the article again, and I get the answer to my question in that paragraph. Thank you very much. As you've said, TCG's not thread-safe. Is it only the shared data structure(e.g TB) that prevent TCG to be thread-safe? I'm seeking a method to parallize TCG in order to parallize Qemu. And,h

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

2013-03-13 Thread Stefan Hajnoczi
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",

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

2013-03-12 Thread 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 thr

[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