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

[Xen-devel] Re: Reversing the DMA handle

To: Muli Ben-Yehuda <muli@xxxxxxxxxx>
Subject: [Xen-devel] Re: Reversing the DMA handle
From: Pete Zaitcev <zaitcev@xxxxxxxxxx>
Date: Tue, 9 Jan 2007 21:12:04 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, zaitcev@xxxxxxxxxx
Delivery-date: Tue, 09 Jan 2007 21:13:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070110032508.GD3392@xxxxxxxxxxxxxxxxxx>
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>
Organization: Red Hat, Inc.
References: <20070109171710.b4cf6ec6.zaitcev@xxxxxxxxxx> <20070110032508.GD3392@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 10 Jan 2007 05:25:08 +0200, Muli Ben-Yehuda <muli@xxxxxxxxxx> wrote:
> On Tue, Jan 09, 2007 at 05:17:10PM -0800, Pete Zaitcev wrote:

> > I maintain a component in Linux kernel, called usbmon. It provides for
> > snooping of USB traffic, analoguously to tcpdump. Due to pequliarities
> > of USB API in Linux, usbmon has to take a DMA address (coming from
> > dma_alloc_coherent() typically), find the corresponding PFN and call
> > pkmap()/memcpy()/pkunmap().

> Regardless of Xen, how is this supposed to work in the presence of
> IOMMUs?

It cannot, generically speaking. So, no usbmon on Calgari. But for
a specific IOMMU I can place necessary hooks. I am looking at SWIOTLB
currently. And don't forget that it only works on cache-coherent
architectures, so no SPARC support ever.

-- Pete

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

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