search for: log_iov

Displaying 1 result from an estimated 1 matches for "log_iov".

Did you mean: log_io
2020 Sep 15
0
[PATCH] vhost: reduce stack usage in log_used
...vhost.c > +++ b/drivers/vhost/vhost.c > @@ -1884,7 +1884,7 @@ static int log_write_hva(struct vhost_virtqueue *vq, u64 hva, u64 len) > > 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 */...