From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCcoE-0005UY-Gi for qemu-devel@nongnu.org; Tue, 16 Dec 2008 11:30:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCcoB-0005PK-Fm for qemu-devel@nongnu.org; Tue, 16 Dec 2008 11:30:09 -0500 Received: from [199.232.76.173] (port=49041 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCcoB-0005Ou-98 for qemu-devel@nongnu.org; Tue, 16 Dec 2008 11:30:07 -0500 Received: from mx20.gnu.org ([199.232.41.8]:23703) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LCco9-0006Rn-E2 for qemu-devel@nongnu.org; Tue, 16 Dec 2008 11:30:06 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCco7-0003oQ-I0 for qemu-devel@nongnu.org; Tue, 16 Dec 2008 11:30:03 -0500 From: Paul Brook Subject: Re: [Qemu-devel] Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO Date: Tue, 16 Dec 2008 16:29:58 +0000 References: <4946D501.4020109@codemonkey.ws> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812161630.00400.paul@codesourcery.com> 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 Cc: Andrea Arcangeli , chrisw@redhat.com, kvm@vger.kernel.org, Blue Swirl , Gerd Hoffmann , Avi Kivity > The generic resolving API should look something like > > int (*resolve)(target_phys_addr_t address_in, target_phys_addr_t > length_in, target_phys_addr_t &address_out, target_phys_addr_t > &length_out) I don't think this is sufficient. A paged iommu may split a single range into multiple disjoint sections. i.e. we need SG lists. Paul