From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXdMK-0003e2-Ub for qemu-devel@nongnu.org; Wed, 20 Jan 2010 11:24:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXdMG-0003YQ-L9 for qemu-devel@nongnu.org; Wed, 20 Jan 2010 11:24:44 -0500 Received: from [199.232.76.173] (port=39762 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXdMG-0003Y1-Cz for qemu-devel@nongnu.org; Wed, 20 Jan 2010 11:24:40 -0500 Received: from verein.lst.de ([213.95.11.210]:60771) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1NXdMF-00065q-No for qemu-devel@nongnu.org; Wed, 20 Jan 2010 11:24:40 -0500 Date: Wed, 20 Jan 2010 17:24:34 +0100 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH] block: prevent multiwrite_merge from creating too large iovecs Message-ID: <20100120162434.GA7212@lst.de> References: <20100119211539.GA4383@lst.de> <4B56EB0F.2020409@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B56EB0F.2020409@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Christoph Hellwig , qemu-devel@nongnu.org On Wed, Jan 20, 2010 at 12:37:51PM +0100, Kevin Wolf wrote: > Am 19.01.2010 22:15, schrieb Christoph Hellwig: > > If we go over the maximum number of iovecs support by syscall we get > > back EINVAL from the kernel which translate to I/O errors for the guest. > > > > Signed-off-by: Christoph Hellwig > > Is this really enough? We don't check for IOV_MAX in any other place, so > can't we get a too big request directly from virtio-blk? Currently the virtqueue is limited to 1024 iovecs, but I plan to put in some better infrastructure to deal with the queue limit. For now this patch fixes an issue that we see with real life setups.