qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Threading Qemu


From: Izik Eidus
Subject: Re: [Qemu-devel] Threading Qemu
Date: Wed, 28 May 2008 10:40:40 +0300
User-agent: Thunderbird 2.0.0.9 (X11/20071115)

address@hidden wrote:
> Hi,
> 
> To make use of all the host CPU cores I'm thinking of adding thread
> support to Qemu.
> The idea so far is to create one thread for each virtual CPU, and then
> run a modified main_loop in each of these threads.
> The first step would be to rewrite all the global variables like
> first_cpu etc to make it more thread friendly, and make that run in the
> current non-threaded version.
> 
> Any hints or tips that I should keep in mind when attempting this? Has
> thread support been worked on before but not completed?
> 
it isn't about just give thread for each virtual CPU, you will need to take 
care that
atomic operations will translate from one architecture to another architecture 
as atomic
plus you will need to take care for memory barriers, and many more things
(it looks very complex)


-- 
woof.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]