Displaying 4 results from an estimated 4 matches for "max_sg_used_by_linux".
2017 Aug 10
1
[PATCH 1/2] virtio: Reduce BUG if total_sg > virtqueue size to WARN.
...vq size to device.
Either tell linux to avoid s/g lists that are too long, or
simply fail request if this happens, or refuse to attach driver to device.
Later option would look something like this within probe:
for (i = VIRTIO_SCSI_VQ_BASE; i < num_vqs; i++)
if (vqs[i]->num < MAX_SG_USED_BY_LINUX)
goto err;
I don't know what's MAX_SG_USED_BY_LINUX though.
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-builder quickly builds VMs from scratch
> ht...
2017 Aug 10
1
[PATCH 1/2] virtio: Reduce BUG if total_sg > virtqueue size to WARN.
...vq size to device.
Either tell linux to avoid s/g lists that are too long, or
simply fail request if this happens, or refuse to attach driver to device.
Later option would look something like this within probe:
for (i = VIRTIO_SCSI_VQ_BASE; i < num_vqs; i++)
if (vqs[i]->num < MAX_SG_USED_BY_LINUX)
goto err;
I don't know what's MAX_SG_USED_BY_LINUX though.
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-builder quickly builds VMs from scratch
> ht...
2017 Aug 10
2
[PATCH 1/2] virtio: Reduce BUG if total_sg > virtqueue size to WARN.
On Thu, Aug 10, 2017 at 10:30:38PM +0100, Richard W.M. Jones wrote:
> On Fri, Aug 11, 2017 at 12:21:16AM +0300, Michael S. Tsirkin wrote:
> > On Thu, Aug 10, 2017 at 05:40:34PM +0100, Richard W.M. Jones wrote:
> > > If using indirect descriptors, you can make the total_sg as large as
> > > you want.
> >
> > That would be a spec violation though, even if it
2017 Aug 10
2
[PATCH 1/2] virtio: Reduce BUG if total_sg > virtqueue size to WARN.
On Thu, Aug 10, 2017 at 10:30:38PM +0100, Richard W.M. Jones wrote:
> On Fri, Aug 11, 2017 at 12:21:16AM +0300, Michael S. Tsirkin wrote:
> > On Thu, Aug 10, 2017 at 05:40:34PM +0100, Richard W.M. Jones wrote:
> > > If using indirect descriptors, you can make the total_sg as large as
> > > you want.
> >
> > That would be a spec violation though, even if it