From: Stefano Stabellini Subject: Re: [PATCH v4 2/3] xen: introduce arch_grant_(un)map_page_identity Date: Mon, 28 Jul 2014 11:53:47 +0100 Message-ID: References: <1406542610-18724-2-git-send-email-stefano.stabellini@eu.citrix.com> <53D6478002000078000268A2@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XBiZy-0003au-3W for xen-devel@lists.xenproject.org; Mon, 28 Jul 2014 10:54:54 +0000 In-Reply-To: <53D6478002000078000268A2@mail.emea.novell.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: Jan Beulich Cc: julien.grall@citrix.com, xen-devel , Ian.Campbell@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 28 Jul 2014, Jan Beulich wrote: > >>> On 28.07.14 at 12:16, wrote: > > Changes in v4: > > - declare the x86 implementations as extern; > > What you say here is what I asked for, but ... > > > --- a/xen/arch/x86/mm/p2m.c > > +++ b/xen/arch/x86/mm/p2m.c > > @@ -1905,6 +1905,19 @@ out: > > rcu_unlock_domain(fdom); > > return rc; > > } > > + > > + > > +int arch_grant_map_page_identity(struct domain *d, unsigned long frame, > > + bool_t writeable) > > +{ > > + return -ENOSYS; > > +} > > + > > +int arch_grant_unmap_page_identity(struct domain *d, unsigned long frame) > > +{ > > + return -ENOSYS; > > +} > > + > > ... what's this (not to speak of the double blank line you introduce)? I > specifically said declare but don't define, to catch problems at build > rather than run time. I understand what you meant now. Clever. I'll do it next time.