Re: [PATCH net-next RFC 3/5] vhost: introduce vhost_add_used_idx()

2017-09-27 Thread Willem de Bruijn
>> > > @@ -199,6 +199,7 @@ int __vhost_get_vq_desc(struct vhost_virtqueue *vq, >> > > void vhost_discard_vq_desc(struct vhost_virtqueue *, int n); >> > > int vhost_vq_init_access(struct vhost_virtqueue *); >> > > +int vhost_add_used_idx(struct vhost_virtqueue *vq, int n); >> > > int

Re: [PATCH net-next RFC 3/5] vhost: introduce vhost_add_used_idx()

2017-09-27 Thread Michael S. Tsirkin
On Wed, Sep 27, 2017 at 08:38:24AM +0800, Jason Wang wrote: > > > On 2017年09月27日 03:13, Michael S. Tsirkin wrote: > > On Fri, Sep 22, 2017 at 04:02:33PM +0800, Jason Wang wrote: > > > This patch introduces a helper which just increase the used idx. This > > > will be used in pair with

Re: [PATCH net-next RFC 3/5] vhost: introduce vhost_add_used_idx()

2017-09-26 Thread Jason Wang
On 2017年09月27日 03:13, Michael S. Tsirkin wrote: On Fri, Sep 22, 2017 at 04:02:33PM +0800, Jason Wang wrote: This patch introduces a helper which just increase the used idx. This will be used in pair with vhost_prefetch_desc_indices() by batching code. Signed-off-by: Jason Wang

Re: [PATCH net-next RFC 3/5] vhost: introduce vhost_add_used_idx()

2017-09-26 Thread Michael S. Tsirkin
On Fri, Sep 22, 2017 at 04:02:33PM +0800, Jason Wang wrote: > This patch introduces a helper which just increase the used idx. This > will be used in pair with vhost_prefetch_desc_indices() by batching > code. > > Signed-off-by: Jason Wang > --- > drivers/vhost/vhost.c | 33

Re: [PATCH net-next RFC 3/5] vhost: introduce vhost_add_used_idx()

2017-09-22 Thread Stefan Hajnoczi
On Fri, Sep 22, 2017 at 04:02:33PM +0800, Jason Wang wrote: > This patch introduces a helper which just increase the used idx. This > will be used in pair with vhost_prefetch_desc_indices() by batching > code. > > Signed-off-by: Jason Wang > --- > drivers/vhost/vhost.c | 33

[PATCH net-next RFC 3/5] vhost: introduce vhost_add_used_idx()

2017-09-22 Thread Jason Wang
This patch introduces a helper which just increase the used idx. This will be used in pair with vhost_prefetch_desc_indices() by batching code. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 33 + drivers/vhost/vhost.h | 1 + 2 files