From: Pete Zaitcev Subject: Re: Reversing the DMA handle Date: Tue, 9 Jan 2007 21:12:04 -0800 Message-ID: <20070109211204.7ae502f6.zaitcev@redhat.com> References: <20070109171710.b4cf6ec6.zaitcev@redhat.com> <20070110032508.GD3392@rhun.haifa.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070110032508.GD3392@rhun.haifa.ibm.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: Muli Ben-Yehuda Cc: xen-devel@lists.xensource.com, zaitcev@redhat.com List-Id: xen-devel@lists.xenproject.org On Wed, 10 Jan 2007 05:25:08 +0200, Muli Ben-Yehuda 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