From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmWEI-0000G4-HV for qemu-devel@nongnu.org; Wed, 25 Mar 2009 12:45:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmWEF-0000Et-15 for qemu-devel@nongnu.org; Wed, 25 Mar 2009 12:45:26 -0400 Received: from [199.232.76.173] (port=39765 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmWEE-0000Ep-Po for qemu-devel@nongnu.org; Wed, 25 Mar 2009 12:45:22 -0400 Received: from mx2.redhat.com ([66.187.237.31]:45240) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LmWEE-0003Qj-2K for qemu-devel@nongnu.org; Wed, 25 Mar 2009 12:45:22 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n2PGjKQi002952 for ; Wed, 25 Mar 2009 12:45:20 -0400 Message-ID: <49CA5F9F.5040203@redhat.com> Date: Wed, 25 Mar 2009 18:45:19 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] honor IDE_DMA_BUF_SECTORS References: <49CA3591.1010309@eu.citrix.com> <49CA4C3D.1070705@redhat.com> <49CA59AE.8060605@eu.citrix.com> In-Reply-To: <49CA59AE.8060605@eu.citrix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Stefano Stabellini wrote: > Avi Kivity wrote: > > >> Stefano Stabellini wrote: >> >>> Hi all, >>> after the recent introduction of dma_buf_prepare we stopped honoring >>> IDE_DMA_BUF_SECTORS (the guest can issue dma requests with a greater >>> total length than IDE_DMA_BUF_SECTORS). >>> This patch adds the IDE_DMA_BUF_SECTORS limit back in place. >>> >>> Comments are welcome. >>> >>> >> Aren't 64K sector requests legal? >> >> Looking at ide_cmd_lba48_transform(). >> >> > > > I am not sure about that, but I would think not since we define MAX_MULT_SECTORS 16 > If I change MAX_MULT_SECTORS, am I supposed to see smaller dma requests? > I think that's for pio, or maybe older DMA? Certainly you wouldn't expect to be limited to 16 sectors DMA. Anyway I think IDE_DMA_BUF_SECTORS was a qemu limitation and did not model real hardware behaviour. -- error compiling committee.c: too many arguments to function