From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LC6t9-0006RL-1O for qemu-devel@nongnu.org; Mon, 15 Dec 2008 01:25:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LC6t7-0006Qq-CW for qemu-devel@nongnu.org; Mon, 15 Dec 2008 01:25:06 -0500 Received: from [199.232.76.173] (port=45944 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LC6t7-0006Qn-7t for qemu-devel@nongnu.org; Mon, 15 Dec 2008 01:25:05 -0500 Received: from mx2.redhat.com ([66.187.237.31]:34048) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LC6t6-0002Aa-P5 for qemu-devel@nongnu.org; Mon, 15 Dec 2008 01:25:05 -0500 Message-ID: <4945F7D0.1070200@redhat.com> Date: Mon, 15 Dec 2008 08:23:12 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH 2 of 5] add can_dma/post_dma for direct IO References: <49456337.4000000@redhat.com> <494591F7.3080002@codemonkey.ws> <200812150057.10162.paul@codesourcery.com> <4945BC63.1080600@codemonkey.ws> In-Reply-To: <4945BC63.1080600@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; 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: Anthony Liguori Cc: Andrea Arcangeli , chrisw@redhat.com, kvm@vger.kernel.org, qemu-devel@nongnu.org, Gerd Hoffmann , Paul Brook Anthony Liguori wrote: >> >> I Wouldn't be surprised if some machines had a large memory mapped IO >> space. Most of it might not be actively used, but once you start >> considering 64-bit machines on 32-bit hosts these allocations would >> become problematic. >> > > At some level, any DMA API would fall apart here. Certain IO > operations simply cannot be split (such as network send). If you pass > don't pass a flag to the map function that says you can handle partial > results, you must cope with map() returning NULL (by dropping the > packet). > ... and then you must cope with it. In all non-network dma clients. Or in the dma api. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.