search for: 5fe4b47

Displaying 1 result from an estimated 1 matches for "5fe4b47".

Did you mean: 5f3e4247
2020 Sep 15
0
[PATCH] vhost: reduce stack usage in log_used
...gt; 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. Defaults to lega...