Received: from eggs.gnu.org ([209.51.188.92]:47053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hH52j-00008N-E2 for qemu-devel@nongnu.org; Thu, 18 Apr 2019 07:17:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hH4nT-0002TQ-A0 for qemu-devel@nongnu.org; Thu, 18 Apr 2019 07:01:46 -0400 References: <20190417115343.30527-1-pbonzini@redhat.com> <20190418104737.GC5242@linux.fritz.box> From: Paolo Bonzini Message-ID: <87b281df-e0a0-6537-0e1a-4c6af28ffc01@redhat.com> Date: Thu, 18 Apr 2019 13:01:17 +0200 MIME-Version: 1.0 In-Reply-To: <20190418104737.GC5242@linux.fritz.box> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] scsi-generic: prevent guest from exceeding SG_IO limits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Stefan Hajnoczi , Stefan Hajnoczi , qemu-devel , qemu block , qemu-stable On 18/04/19 12:47, Kevin Wolf wrote: >> This is acually only an issue with kernels prior to 4.5, so it should be >> fixed downstream instead. > > I don't think that upstream QEMU has kernels > 4.5 as an official > requirement, though? We try to be compatible with quite old libs, so we > should stay compatible with old kernels, too. It is a pretty rare case, where the host must support very large scatter/gather lists (>=1024 elements) and there is a workaround by setting max_sectors_kb to 4096 in the host. It also makes performance worse. Having already written and posted the patch, I can of course apply it too, but I'm not sure it's a good idea. 4.4 is already a pretty old kernel and whoever is using it likely will not get the fix for free by using a very new QEMU. Paolo