From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7dyR-00087T-E3 for qemu-devel@nongnu.org; Fri, 22 May 2009 19:16:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7dyN-00083z-Oj for qemu-devel@nongnu.org; Fri, 22 May 2009 19:16:23 -0400 Received: from [199.232.76.173] (port=48585 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7dyN-00083i-KF for qemu-devel@nongnu.org; Fri, 22 May 2009 19:16:19 -0400 Received: from mx20.gnu.org ([199.232.41.8]:51773) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7dyN-0003MM-Bs for qemu-devel@nongnu.org; Fri, 22 May 2009 19:16:19 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M7dyM-00012x-4n for qemu-devel@nongnu.org; Fri, 22 May 2009 19:16:18 -0400 From: Paul Brook Subject: Re: [Qemu-devel] New device API Date: Sat, 23 May 2009 00:16:15 +0100 References: <200905142239.18358.paul@codesourcery.com> <4A0D3885.1010701@redhat.com> <4A0D8801.4090402@redhat.com> In-Reply-To: <4A0D8801.4090402@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905230016.15288.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann On Friday 15 May 2009, Gerd Hoffmann wrote: > On 05/15/09 11:40, Gerd Hoffmann wrote: > > I think we should also have a generic BusState with a name and a list of > > devices attached (maybe more). Then have "BusState *bus" instead of > > "void *bus". > > i.e. something like the attached patch. It is just a quick outline, far > from being complete, and with some FIXMEs. Compiles and works though. I implemented something similar, plus several resulting cleanups and simplifications. Paul