On Mon, Mar 08, 2010 at 11:46:46AM +0530, Amit Shah wrote: > 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
There's a function to do this. Called from virtio-pci.