search for: 9032d3c

Displaying 2 results from an estimated 2 matches for "9032d3c".

Did you mean: 7902d3c
2020 Sep 15
0
[PATCH] vhost: reduce stack usage in log_used
...> > static int log_used(struct vhost_virtqueue *vq, u64 used_offset, u64 len) > { > - struct iovec iov[64]; > + struct iovec *iov = vq->log_iov; > int i, ret; > > if (!vq->iotlb) > diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h > index 9032d3c..5fe4b47 > --- a/drivers/vhost/vhost.h > +++ b/drivers/vhost/vhost.h > @@ -123,6 +123,7 @@ struct vhost_virtqueue { > /* Log write descriptors */ > void __user *log_base; > struct vhost_log *log; > + struct iovec log_iov[64]; > > /* Ring endianness. Default...
2020 Sep 22
0
[PATCH 2/8] vhost: add helper to check if a vq has been setup
...have something like what vDPA did (VHOST_SET_VRING_ENABLE) to match virtio 1.0 device definition. Thanks > + > static void vhost_vq_reset(struct vhost_dev *dev, > struct vhost_virtqueue *vq) > { > diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h > index 9032d3c..3d30b3d 100644 > --- a/drivers/vhost/vhost.h > +++ b/drivers/vhost/vhost.h > @@ -190,6 +190,7 @@ int vhost_get_vq_desc(struct vhost_virtqueue *, > struct vhost_log *log, unsigned int *log_num); > void vhost_discard_vq_desc(struct vhost_virtqueue *, int n); > > +...