WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: Reversing the DMA handle

To: Pete Zaitcev <zaitcev@xxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Reversing the DMA handle
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Thu, 11 Jan 2007 07:51:03 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 10 Jan 2007 23:50:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070110192102.1d077fc3.zaitcev@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acc1VT3hfEWN96FIEdunnQANk04WTA==
Thread-topic: [Xen-devel] Re: Reversing the DMA handle
User-agent: Microsoft-Entourage/11.3.2.061213
On 11/1/07 3:21 am, "Pete Zaitcev" <zaitcev@xxxxxxxxxx> 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>