From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall 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 14:54:05 +0100 Message-ID: <537CAFFD.4020001@linaro.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wn6y8-0007QE-LD for xen-devel@lists.xenproject.org; Wed, 21 May 2014 13:54:08 +0000 Received: by mail-ee0-f51.google.com with SMTP id e51so1573664eek.24 for ; Wed, 21 May 2014 06:54:07 -0700 (PDT) In-Reply-To: <1400680299.4856.101.camel@kazak.uk.xensource.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: Ian Campbell Cc: xen-devel@lists.xenproject.org, tim@xen.org, Jan Beulich , stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org 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. -- Julien Grall