[Qemu-devel] [PULL] virtio: allow mapping up to max queue size

2014-05-13 Thread Michael S. Tsirkin
It's a loop from i < num_sg and the array is VIRTQUEUE_MAX_SIZE - so it's OK if the value read is VIRTQUEUE_MAX_SIZE. Not a big problem in practice as people don't use such big queues, but it's inelegant. Reported-by: "Dr. David Alan Gilbert" Cc: qemu-sta...@nongnu.org Signed-off-by: Michael S.

Re: [Qemu-devel] [PULL] virtio: allow mapping up to max queue size

2014-05-13 Thread Marcel Apfelbaum
On Tue, 2014-05-13 at 18:42 +0300, Michael S. Tsirkin wrote: > It's a loop from i < num_sg and the array is VIRTQUEUE_MAX_SIZE - so > it's OK if the value read is VIRTQUEUE_MAX_SIZE. > > Not a big problem in practice as people don't use > such big queues, but it's inelegant. > > Reported-by: "Dr