From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXdS3-0001qO-Vt for qemu-devel@nongnu.org; Wed, 20 Jan 2010 11:30:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXdRz-0001kZ-Ry for qemu-devel@nongnu.org; Wed, 20 Jan 2010 11:30:39 -0500 Received: from [199.232.76.173] (port=52927 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXdRz-0001kE-FG for qemu-devel@nongnu.org; Wed, 20 Jan 2010 11:30:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39776) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXdRy-0007Pd-HB for qemu-devel@nongnu.org; Wed, 20 Jan 2010 11:30:35 -0500 Message-ID: <4B572F65.7070201@redhat.com> Date: Wed, 20 Jan 2010 17:29:25 +0100 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] block: prevent multiwrite_merge from creating too large iovecs References: <20100119211539.GA4383@lst.de> <4B56EB0F.2020409@redhat.com> <20100120162434.GA7212@lst.de> In-Reply-To: <20100120162434.GA7212@lst.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: qemu-devel@nongnu.org Am 20.01.2010 17:24, schrieb Christoph Hellwig: > 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. Ok, if you're planning to replace it by something real, I'm not opposed to using this as a quick fix for the meantime. However, it needs an #ifdef for the mingw build breakage at least. Kevin