From: "Jan Beulich" Subject: Re: [PATCH v3 2/3] xen: introduce arch_grant_(un)map_page_identity Date: Thu, 24 Jul 2014 14:42:49 +0100 Message-ID: <53D1297902000078000258F0@mail.emea.novell.com> References: <1406208666-23547-2-git-send-email-stefano.stabellini@eu.citrix.com> 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 1XAJIK-0003Pj-4Q for xen-devel@lists.xenproject.org; Thu, 24 Jul 2014 13:42:52 +0000 In-Reply-To: <1406208666-23547-2-git-send-email-stefano.stabellini@eu.citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: julien.grall@citrix.com, xen-devel , Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 24.07.14 at 15:31, wrote: > --- a/xen/include/asm-x86/p2m.h > +++ b/xen/include/asm-x86/p2m.h > @@ -717,6 +717,19 @@ static inline unsigned int p2m_get_iommu_flags(p2m_type_t p2mt) > > return flags; > } > + > +static inline int arch_grant_map_page_identity(struct domain *d, > + unsigned long frame, > + bool_t writeable) > +{ > + return -ENOSYS; > +} > + > +static inline int arch_grant_unmap_page_identity(struct domain *d, > + unsigned long frame) > +{ > + return -ENOSYS; > +} As said before I'd prefer these to just be extern declarations, allowing eventual issues to be found at build time rather than them being deferred to runtime. Jan