Received: from eggs.gnu.org ([2001:4830:134:3::10]:60075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkBQl-0004xV-4N for qemu-devel@nongnu.org; Tue, 13 May 2014 08:03:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkBQf-0006DO-HE for qemu-devel@nongnu.org; Tue, 13 May 2014 08:03:35 -0400 Date: Tue, 13 May 2014 14:03:23 +0200 From: Stefan Hajnoczi Message-ID: <20140513120323.GC24441@stefanha-thinkpad.redhat.com> References: <1399885648-14985-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1399885648-14985-1-git-send-email-mst@redhat.com> Subject: Re: [Qemu-devel] [PATCH] virtio: allow mapping up to max queue size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: peter.maydell@linaro.org, qemu-stable@nongnu.org, qemu-devel@nongnu.org, Anthony Liguori , "Dr. David Alan Gilbert" On Mon, May 12, 2014 at 12:08:21PM +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. David Alan Gilbert" > Cc: qemu-stable@nongnu.org > Signed-off-by: Michael S. Tsirkin > --- > hw/virtio/virtio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Stefan Hajnoczi