Received: from eggs.gnu.org ([2001:4830:134:3::10]:46419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr7S6-0001Yz-S7 for qemu-devel@nongnu.org; Tue, 27 Oct 2015 12:50:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr7S2-0005kg-W1 for qemu-devel@nongnu.org; Tue, 27 Oct 2015 12:50:26 -0400 Date: Tue, 27 Oct 2015 16:50:15 +0000 From: Stefan Hajnoczi Message-ID: <20151027165015.GA9986@stefanha-x1.localdomain> References: <1445902682-20051-1-git-send-email-jsnow@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1445902682-20051-1-git-send-email-jsnow@redhat.com> Subject: Re: [Qemu-devel] [PATCH] ide: remove hardcoded 2GiB transactional limit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: kwolf@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org On Mon, Oct 26, 2015 at 07:38:02PM -0400, John Snow wrote: > Not that you can request a >2GiB transaction, but that's why checking > for it makes no sense anymore. > > With the newer 'limit' parameter to prepare_buf, we no longer need a > static limit. The maximum limit is still 2GiB, but the limit parameter > is set to the current transaction size, which cannot surpass 32MiB > (512 * 65536). If the PRDT surpasses the transactional size, then, > we'll just carry out the normative underflow handling pathways instead > of needing an extra, strange pathway that worries about hitting some > logistical cap for the largest sglist we can support -- we'll never > even attempt to build one that big anymore. > > Reported-by: Kevin Wolf > Signed-off-by: John Snow > --- > hw/ide/ahci.c | 30 ++++++++++++++---------------- > hw/ide/internal.h | 2 +- > hw/ide/pci.c | 7 ------- > 3 files changed, 15 insertions(+), 24 deletions(-) Acked-by: Stefan Hajnoczi