|Subject:||RE: [Qemu-devel] Threading Qemu|
|Date:||Wed, 28 May 2008 03:40:20 -0700|
|User-agent:||Web-Based Email 4.13.1|
-------- Original Message --------
Subject: Re: [Qemu-devel] Threading Qemu
From: Izik Eidus <address@hidden>
Date: Wed, May 28, 2008 12:40 am
> 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)
|[Prev in Thread]||Current Thread||[Next in Thread]|