Received: from eggs.gnu.org ([2001:4830:134:3::10]:47447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyP2l-0002Su-JL for qemu-devel@nongnu.org; Tue, 09 Dec 2014 12:57:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyP2b-0001Ia-Sj for qemu-devel@nongnu.org; Tue, 09 Dec 2014 12:57:51 -0500 Received: from roura.ac.upc.edu ([147.83.33.10]:34562 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyP2b-0001IC-Hm for qemu-devel@nongnu.org; Tue, 09 Dec 2014 12:57:41 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <5485BA0A.4010206@greensocs.com> Date: Tue, 09 Dec 2014 11:57:33 -0600 In-Reply-To: <5485BA0A.4010206@greensocs.com> (Frederic Konrad's message of "Mon, 08 Dec 2014 15:47:38 +0100") Message-ID: <87sigo3dv6.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] TCG multithread plan. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Frederic Konrad Cc: mttcg@greensocs.com, qemu-devel Frederic Konrad writes: > Hi everybody, > Here is the plan we will follow: > We will be focusing - from the outset - on the end goal of multi-threaded= TCG in full system emulation mode. On the way, we expect this will =E2=80= =98fix=E2=80=99 user mode. > The plan is: > * Create one cache per CPU as a first step. We can do more next and share= a cache. > * Update tb_* to add a pointer to their cache. > * Add atomic instruction support to the TGC (first on ARM). > * Make tb_invalidate work between all cache. > * Modify main-loop for multi-thread. > * Memory access (eg: for device) are not thread safe that need to be fixe= d. Initial plan simply globally mutex memory accesses - this may be optimis= ed later. > * For now, irq handler for CPU seems ok but we need to check. > We will discuss this during the call tomorrow. Is there any plan to have the notion of "memory coherency domains"? (shorte= ned as MCD in the wiki) Even though it's not that useful now, it could be used in the future to rel= ax the atomicity of operations when different devices operate on different MCD= s and TCG is not able to map that into an atomic host operation (aka, has to use locks). A system with a CPU and a GPU would be a good example of that. Thanks, Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth