From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47590 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVYM8-0001NB-4m for qemu-devel@nongnu.org; Wed, 22 Dec 2010 18:44:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVYM7-0002p4-9X for qemu-devel@nongnu.org; Wed, 22 Dec 2010 18:44:28 -0500 Received: from gate.crashing.org ([63.228.1.57]:57195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVYM6-0002oy-So for qemu-devel@nongnu.org; Wed, 22 Dec 2010 18:44:27 -0500 Subject: Re: [Qemu-devel] scsi-generic and max request size From: Benjamin Herrenschmidt In-Reply-To: <38550122-4CCE-4F97-BCA3-4AA37230D623@suse.de> References: <1292901946.16694.688.camel@pasglop> <1292903541.16694.695.camel@pasglop> <4D1068E3.4080000@suse.de> <1292969126.16694.755.camel@pasglop> <4D12032E.6040602@suse.de> <1293055150.16694.779.camel@pasglop> <04B7FA87-1141-4B62-A7C2-3D1970041980@suse.de> <1293060903.16694.789.camel@pasglop> <38550122-4CCE-4F97-BCA3-4AA37230D623@suse.de> Content-Type: text/plain; charset="UTF-8" Date: Thu, 23 Dec 2010 10:44:17 +1100 Message-ID: <1293061457.16694.791.camel@pasglop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Kevin Wolf , Christoph Hellwig , Hannes Reinecke , ronnie sahlberg , qemu-devel On Thu, 2010-12-23 at 00:39 +0100, Alexander Graf wrote: > This all belongs in the block layer. If you create a call back > function or property in the block struct, windows can implement its > own limits when someone sits down to implement SG_IO on Windows. Right and we do have "generic" ways it seems to interrogate those limits .. except they seem to be broken for "sg" :-) Also I've spotted some oddities where the ioctl for the max request size sometimes put_user as a int * and sometimes as a short * ... ooops... Cheers, Ben.