From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NoWI8-0003me-LP for qemu-devel@nongnu.org; Mon, 08 Mar 2010 01:18:12 -0500 Received: from [199.232.76.173] (port=36120 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoWI7-0003mW-Pd for qemu-devel@nongnu.org; Mon, 08 Mar 2010 01:18:11 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NoWI6-0003HO-SH for qemu-devel@nongnu.org; Mon, 08 Mar 2010 01:18:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:10971) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NoWI6-0003HK-Hk for qemu-devel@nongnu.org; Mon, 08 Mar 2010 01:18:10 -0500 Date: Mon, 8 Mar 2010 11:46:46 +0530 From: Amit Shah Message-ID: <20100308061646.GC8436@amit-x200.redhat.com> References: <20100305130835.GD22141@amit-x200.redhat.com> <20100306190757.GC12235@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100306190757.GC12235@redhat.com> Subject: [Qemu-devel] Re: [PATCHv4 05/12] virtio: add APIs for queue fields List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: quintela@redhat.com, qemu-devel@nongnu.org, kraxel@redhat.com On (Sat) Mar 06 2010 [21:07:57], Michael S. Tsirkin wrote: > On Fri, Mar 05, 2010 at 06:38:35PM +0530, Amit Shah wrote: > > On (Wed) Mar 03 2010 [19:16:09], Michael S. Tsirkin wrote: > > > + > > > +EventNotifier *virtio_queue_guest_notifier(VirtQueue *vq) > > > +{ > > > + return &vq->guest_notifier; > > > +} > > > +EventNotifier *virtio_queue_host_notifier(VirtQueue *vq) > > > +{ > > > + return &vq->host_notifier; > > > +} > > > > Where are these host_notifier and guest_notifier fields set? Am I > > completely missing it? > > What do you mean by "set"? > You get a pointer, you can e.g. init it. I mean where is vq->host_notifier initialised? Amit