From: Muli Ben-Yehuda Subject: Re: Reversing the DMA handle Date: Wed, 10 Jan 2007 05:25:08 +0200 Message-ID: <20070110032508.GD3392@rhun.haifa.ibm.com> References: <20070109171710.b4cf6ec6.zaitcev@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20070109171710.b4cf6ec6.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 Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Jan 09, 2007 at 05:17:10PM -0800, Pete Zaitcev wrote: > Dear Xen developers: > > 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(). Hi Pete, Regardless of Xen, how is this supposed to work in the presence of IOMMUs? Cheers, Muli