Re: [PATCH RFC 2/2] vhost: packed ring support

2018-02-27 Thread Jason Wang
On 2018年02月27日 17:03, Tiwei Bie wrote: On Wed, Feb 14, 2018 at 10:37:09AM +0800, Jason Wang wrote: [...] +static void set_desc_used(struct vhost_virtqueue *vq, + struct vring_desc_packed *desc, bool wrap_counter) +{ + __virtio16 flags = desc->flags; + + if

Re: [PATCH RFC 2/2] vhost: packed ring support

2018-02-27 Thread Jason Wang
On 2018年02月27日 17:03, Tiwei Bie wrote: On Wed, Feb 14, 2018 at 10:37:09AM +0800, Jason Wang wrote: [...] +static void set_desc_used(struct vhost_virtqueue *vq, + struct vring_desc_packed *desc, bool wrap_counter) +{ + __virtio16 flags = desc->flags; + + if

Re: [PATCH RFC 2/2] vhost: packed ring support

2018-02-27 Thread Tiwei Bie
On Wed, Feb 14, 2018 at 10:37:09AM +0800, Jason Wang wrote: [...] > +static void set_desc_used(struct vhost_virtqueue *vq, > + struct vring_desc_packed *desc, bool wrap_counter) > +{ > + __virtio16 flags = desc->flags; > + > + if (wrap_counter) { > +

Re: [PATCH RFC 2/2] vhost: packed ring support

2018-02-27 Thread Tiwei Bie
On Wed, Feb 14, 2018 at 10:37:09AM +0800, Jason Wang wrote: [...] > +static void set_desc_used(struct vhost_virtqueue *vq, > + struct vring_desc_packed *desc, bool wrap_counter) > +{ > + __virtio16 flags = desc->flags; > + > + if (wrap_counter) { > +

[PATCH RFC 2/2] vhost: packed ring support

2018-02-13 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/net.c | 14 +- drivers/vhost/vhost.c | 351 ++ drivers/vhost/vhost.h | 6 +- 3 files changed, 343 insertions(+), 28 deletions(-) diff --git a/drivers/vhost/net.c

[PATCH RFC 2/2] vhost: packed ring support

2018-02-13 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/net.c | 14 +- drivers/vhost/vhost.c | 351 ++ drivers/vhost/vhost.h | 6 +- 3 files changed, 343 insertions(+), 28 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index