[Qemu-devel] Re: [PATCHv4 05/12] virtio: add APIs for queue fields

2010-03-07 Thread Amit Shah
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; +}

[Qemu-devel] Re: [PATCHv4 05/12] virtio: add APIs for queue fields

2010-03-06 Thread Michael S. Tsirkin
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) +{ +

[Qemu-devel] Re: [PATCHv4 05/12] virtio: add APIs for queue fields

2010-03-06 Thread Michael S. Tsirkin
On Fri, Mar 05, 2010 at 05:40:18PM +0530, Amit Shah wrote: On (Wed) Mar 03 2010 [19:16:09], Michael S. Tsirkin wrote: vhost needs physical addresses for ring and other queue fields, so add APIs for these. Already discussed on IRC, but mentioning here so that it doesn't get lost:

[Qemu-devel] Re: [PATCHv4 05/12] virtio: add APIs for queue fields

2010-03-05 Thread Amit Shah
On (Wed) Mar 03 2010 [19:16:09], Michael S. Tsirkin wrote: vhost needs physical addresses for ring and other queue fields, so add APIs for these. Already discussed on IRC, but mentioning here so that it doesn't get lost: +target_phys_addr_t virtio_queue_get_desc(VirtIODevice *vdev, int n) +{