From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DX03Y-0003FC-66 for qemu-devel@nongnu.org; Sat, 14 May 2005 13:04:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DX03W-0003EN-Dh for qemu-devel@nongnu.org; Sat, 14 May 2005 13:04:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DX02w-0002eq-Up for qemu-devel@nongnu.org; Sat, 14 May 2005 13:03:27 -0400 Received: from [12.124.108.50] (helo=dash.soliddesign.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DX02E-0007rh-42 for qemu-devel@nongnu.org; Sat, 14 May 2005 13:02:42 -0400 Received: from fred.ofc.soliddesign.net (fred [10.2.3.254]) by dash.soliddesign.net (Postfix) with ESMTP id 6DD0B20AFC1 for ; Sat, 14 May 2005 11:55:10 -0500 (EST) Subject: Re: [Qemu-devel] Re: request : qemu-smp as target From: Joe Batt In-Reply-To: <4285EC1E.4090904@bellard.org> References: <4285EC1E.4090904@bellard.org> Content-Type: text/plain Date: Sat, 14 May 2005 11:55:12 -0500 Message-Id: <1116089712.18405.14.camel@fred.ofc.soliddesign.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sat, 2005-05-14 at 14:16 +0200, Fabrice Bellard wrote: ... > 2) The first implementation would use a cycle counter to schedule > between CPUs. Is it interesting to go further and to use a host thread > for each guest CPU at the expense of more locking overhead ? What inter processor synchronization issues are there? Could you take this a step further and use processes on different machines for each processor? (There are many shared memory implementations to choose from.) I have ignorantly implemented an SH2 emulator, but have zero understanding of an SMP system. Are there so many resources shared between the CPUs to make this a ridiculous proposition? It could make for a interesting distributed single image system. -- Joe Batt