From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [question]: __gnttab_map_grant_ref() and iommu Date: Wed, 4 Apr 2012 08:28:59 +0100 Message-ID: <1333524539.12209.20.camel@dagon.hellion.org.uk> References: <20120403191455.6967e409@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120403191455.6967e409@mantra.us.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Mukesh Rathor Cc: "Xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2012-04-04 at 03:14 +0100, Mukesh Rathor wrote: > I'm not able to figure why __gnttab_map_grant_ref() does PV iommu > mappings for GNTMAP_host_map. Should it not check for GNTMAP_device_map > and do for those only? I don't know but perhaps it is because when the backend maps a foreign page there is a reasonably high chance that it is eventually going to end up passing that page to a hardware device (e.g. a physical NIC or disk controller) for DMA and therefore the mapping must be reflected in the IOMMU. Ian.