From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SczRw-0005db-8o for qemu-devel@nongnu.org; Fri, 08 Jun 2012 09:42:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SczRp-0004Bi-N3 for qemu-devel@nongnu.org; Fri, 08 Jun 2012 09:41:59 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:45952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SczRp-0004BG-5N for qemu-devel@nongnu.org; Fri, 08 Jun 2012 09:41:53 -0400 Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 8 Jun 2012 13:35:40 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q58DYHqW6816078 for ; Fri, 8 Jun 2012 23:34:17 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q58Dfcth013766 for ; Fri, 8 Jun 2012 23:41:39 +1000 Message-ID: <4FD2010C.8000006@us.ibm.com> Date: Fri, 08 Jun 2012 21:41:32 +0800 From: Anthony Liguori MIME-Version: 1.0 References: <201206081013.09756.paul@codesourcery.com> In-Reply-To: <201206081013.09756.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] QOMification of AXI stream List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Michal Simek , "qemu-devel@nongnu.org Developers" , Peter Crosthwaite , "Edgar E. Iglesias" , =?ISO-8859-1?Q?Andreas_F=E4rber?= , John Williams On 06/08/2012 05:13 PM, Paul Brook wrote: >> Im looking to QOMifying and refactoring the AXI stream interfaces >> between the AXI ethernet and AXI DMA modules. I could use some >> guidance on how to do this as I can think of about 6 different >> solutions. Sources are hw/xilinx_axienet.c and hw/xilinx_axidma.c. >> >> ... >> >> So what im proposing is AXI stream is implemented as a unidirectional >> point to point bus. The xilinx ethernet system would consist of two of >> these buses one for tx, one for rx. > > I thought the idea was that with QOM the bus/device model would go away. > The DMA controller implements an AXIDMA interface, and the device has a AXIDMA > link that's connected to that interface. > > Of course we then hit the usual problem with QOM that we can only link to > objects, and it's impossible to expose multiple interfaces of the same type. No, QOM supports multiple inheritance of interfaces so you absolutely can inherit from multiple different interfaces. So no need for proxy objects. Regards, Anthony Liguori > The DMA controller probably needs a proxy object for each DMA channel. > > Paul >