From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFa4P-0007EN-9e for qemu-devel@nongnu.org; Wed, 04 Apr 2012 19:56:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFa4N-0002yj-JV for qemu-devel@nongnu.org; Wed, 04 Apr 2012 19:56:56 -0400 Received: from cantor2.suse.de ([195.135.220.15]:46178 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFa4N-0002yf-Da for qemu-devel@nongnu.org; Wed, 04 Apr 2012 19:56:55 -0400 Message-ID: <4F7CDFC1.3000202@suse.de> Date: Thu, 05 Apr 2012 01:56:49 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] PL353 Device model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Williams Cc: Peter Maydell , Anthony Liguori , qemu-devel@nongnu.org, Peter Crosthwaite , Paul Brook , "Edgar E. Iglesias" Hello John, Am 05.04.2012 01:35, schrieb John Williams: > On Fri, Mar 30, 2012 at 5:13 PM, Peter Crosthwaite > wrote: >=20 >> We currently have a somewhat hacky PL353 device model in our tree that >> we wish to refactor and ultimately push to mainline. Before I go about >> reworking it, I wish to discuss the architecture of this device model >> because its non-trivial. >=20 > Ping.. >=20 > We'd really appreciate some feedback on this to avoid the duplicated > effort we are seeing in other areas such as SPI. Generally speaking, the qdev busses (i.e., tree-style) are scheduled to die out in favor of DAG-style QOM. However that's not going to happen for 1.1 yet, so if there's a need for a new SPI bus it needs to be qdev. As for the desired cascading here, my idea would be to make both flash interfaces child<>s of the controller, arranging their MemoryRegions so that (if applicable) they become subregions and can be toggled by the controller. My .02 AUD, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg