From: Ian Campbell Subject: Re: [PATCH v8 4/4] xen/arm: grant: Add another entry to map MFN 1:1 in dom0 p2m Date: Wed, 21 May 2014 15:04:18 +0100 Message-ID: <1400681058.4856.104.camel@kazak.uk.xensource.com> References: <1400516640-7175-1-git-send-email-julien.grall@linaro.org> <1400516640-7175-5-git-send-email-julien.grall@linaro.org> <1400678863.4856.87.camel@kazak.uk.xensource.com> <537CAD5B.1080207@linaro.org> <1400680299.4856.101.camel@kazak.uk.xensource.com> <537CAFFD.4020001@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wn78G-0000hx-BK for xen-devel@lists.xenproject.org; Wed, 21 May 2014 14:04:36 +0000 In-Reply-To: <537CAFFD.4020001@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, Jan Beulich , stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2014-05-21 at 14:54 +0100, Julien Grall wrote: > On 05/21/2014 02:51 PM, Ian Campbell wrote: > > On Wed, 2014-05-21 at 14:42 +0100, Julien Grall wrote: > > > >>> Is gnttab the only possible user? > >> > >> For ARM yes. > > [...] > >> The iommu_map_page could be reuse more generically in long-term. Using > >> p2m_grant_map_{ro,rw} would be confusing here. > > > > BTW, those statements contradict each other. > > Right. This function could also be used if we want to support per-IOMMU > p2m rather than sharing with the CPU. I suspected as much, thanks. I don't know how likely that is to be a thing which happens. (I'm not sure what the implications of that are for either the comment or the p2m type name...) Ian.