qemu-devel
[Top][All Lists]
Advanced

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

RE: [Qemu-devel] Threading Qemu


From: Mikael Regnell
Subject: RE: [Qemu-devel] Threading Qemu
Date: Wed, 28 May 2008 03:40:20 -0700
User-agent: Web-Based Email 4.13.1

The current idea is to use mutexes at TB level, to avoid problems with atomic operations. Perhaps this won't give enough benefit, but it is the current plan. With this approach it's possible to go down to atomic level operation in the future.

I read in another thread that Paul Brook is planning to implement multithreading.
Paul: Do you have any more information on your approach?

BR,
/Micke

-------- Original Message --------
Subject: Re: [Qemu-devel] Threading Qemu
From: Izik Eidus <address@hidden>
Date: Wed, May 28, 2008 12:40 am
To: address@hidden

mixado@mod-x.com 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]