Re: [Qemu-devel] [qemu-devel]question on virtqueue_get_avail_bytes

2013-09-04 Thread Amit Shah
On (Tue) 03 Sep 2013 [14:15:55], Michael S. Tsirkin wrote: > On Tue, Sep 03, 2013 at 04:40:21PM +0530, Amit Shah wrote: > > On (Mon) 19 Aug 2013 [16:30:54], Stefan Hajnoczi wrote: > > > On Mon, Aug 19, 2013 at 05:28:44PM +0800, yinyin wrote: > > > > Hi,all: > > > > in func virtqueue_get_ava

Re: [Qemu-devel] [qemu-devel]question on virtqueue_get_avail_bytes

2013-09-03 Thread Michael S. Tsirkin
On Tue, Sep 03, 2013 at 04:40:21PM +0530, Amit Shah wrote: > On (Mon) 19 Aug 2013 [16:30:54], Stefan Hajnoczi wrote: > > On Mon, Aug 19, 2013 at 05:28:44PM +0800, yinyin wrote: > > > Hi,all: > > > in func virtqueue_get_avail_bytes, when found a indirect desc, we need > > > loop over it. > > >

Re: [Qemu-devel] [qemu-devel]question on virtqueue_get_avail_bytes

2013-09-03 Thread Amit Shah
On (Mon) 19 Aug 2013 [16:30:54], Stefan Hajnoczi wrote: > On Mon, Aug 19, 2013 at 05:28:44PM +0800, yinyin wrote: > > Hi,all: > > in func virtqueue_get_avail_bytes, when found a indirect desc, we need > > loop over it. > > /* loop over the indirect descriptor table */ > >

Re: [Qemu-devel] [qemu-devel]question on virtqueue_get_avail_bytes

2013-08-19 Thread Stefan Hajnoczi
On Mon, Aug 19, 2013 at 05:28:44PM +0800, yinyin wrote: > Hi,all: > in func virtqueue_get_avail_bytes, when found a indirect desc, we need > loop over it. > /* loop over the indirect descriptor table */ > indirect = 1; > max = vring_desc_len(desc_pa, i) /