From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbvsT-0002lE-8c for qemu-devel@nongnu.org; Fri, 23 Nov 2012 11:13:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbvsN-00067x-BG for qemu-devel@nongnu.org; Fri, 23 Nov 2012 11:13:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbvsN-00067r-3r for qemu-devel@nongnu.org; Fri, 23 Nov 2012 11:13:11 -0500 Date: Fri, 23 Nov 2012 17:13:02 +0100 From: Stefan Hajnoczi Message-ID: <20121123161302.GA2915@stefanha-thinkpad.redhat.com> References: <1353595852-30776-1-git-send-email-fred.konrad@greensocs.com> <1353595852-30776-2-git-send-email-fred.konrad@greensocs.com> <20121123122339.GB29474@stefanha-thinkpad.redhat.com> <50AF866A.2000709@greensocs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50AF866A.2000709@greensocs.com> Subject: Re: [Qemu-devel] [RFC PATCH v2 1/3] virtio-bus : Introduce VirtioBus. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Konrad Frederic Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, e.voevodin@samsung.com, mark.burton@greensocs.com, qemu-devel@nongnu.org, cornelia.huck@de.ibm.com, afaerber@suse.de On Fri, Nov 23, 2012 at 03:21:30PM +0100, Konrad Frederic wrote: > On 23/11/2012 13:23, Stefan Hajnoczi wrote: > >On Thu, Nov 22, 2012 at 03:50:50PM +0100, fred.konrad@greensocs.com wrote: > >>+struct VirtioBusInfo { > >This is defining an ad-hoc interface. QOM has support for interfaces so > >that a virtio-pci adapter brovides a VirtioBindingInterface which > >VirtioBus can talk to intead of using VirtioBusInfo. > Can you point me to example in the tree to see how this QOM > interfaces work ? hw/stream.h and hw/stream.c A StreamSlave has one method: void (*push)(StreamSlave *obj, unsigned char *buf, size_t len, uint32_t *app); The xlnx.axi-ethernet device in hw/xilinx_axienet.c is an example of a class that implements the StreamSlave interface. Stefan