From: Keir Fraser Subject: Re: Re: Reversing the DMA handle Date: Thu, 11 Jan 2007 07:51:03 +0000 Message-ID: References: <20070110192102.1d077fc3.zaitcev@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070110192102.1d077fc3.zaitcev@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Pete Zaitcev , Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 11/1/07 3:21 am, "Pete Zaitcev" wrote: > The SWIOTLB is something I can't understand still. The code sure looks > like returning physical addresses to be used as DMA handles, just like > any usual routines do: Yes, but suitably low physical addresses which are kept in sync with the original high addresses by occasional memcpy(). The question is: if you have a 'DMA address' that belongs to the swiotlb, do you mind if the MFN->PFN translation yields you an address inside the swiotlb aperture rather than the original driver address? Since both addresses are valid local memory, and both should contain a reasonably up-to-date copy of the data you are wanting to sniff, I guess maybe you don't actually care. -- Keir