From: "Jan Beulich" Subject: Re: [v4][PATCH 1/2] xen:x86:mm:p2m: introduce set_rmrr_p2m_entry Date: Mon, 28 Jul 2014 13:07:03 +0100 Message-ID: <53D65907020000780002694F@mail.emea.novell.com> References: <1406547735-27315-1-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406547735-27315-1-git-send-email-tiejun.chen@intel.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: Tiejun Chen Cc: yang.z.zhang@intel.com, kevin.tian@intel.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 28.07.14 at 13:42, wrote: > --- a/xen/arch/x86/mm/p2m.c > +++ b/xen/arch/x86/mm/p2m.c > @@ -858,6 +858,32 @@ int set_mmio_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn) > return set_typed_p2m_entry(d, gfn, mfn, p2m_mmio_direct); > } > > +int set_rmrr_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn) Leaving aside all the previously raised points making me hesitate to accept the pair of patches on their own, let's please try to avoid having Intel specific function names in non-Intel-specific code unless that's really the best choice. In the case here, you could s/rmrr/identity/ and at once drop the redundant mfn argument (the function can construct this for the call to p2m_set_entry(), and the function name will make it obvious why this gets derived from gfn). Jan