From: "Jan Beulich" Subject: Re: [PATCH v5] x86/arm/mm: use gfn instead of pfn in p2m_get_mem_access/p2m_set_mem_access Date: Fri, 10 Jul 2015 11:43:27 +0100 Message-ID: <559FBDEF020000780008F678@mail.emea.novell.com> References: <1435843128-5474-1-git-send-email-vkuznets@redhat.com> <55956371.6060909@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55956371.6060909@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: Ian Campbell , Stefano Stabellini Cc: Keir Fraser , Razvan Cojocaru , George Dunlap , Andrew Cooper , Tim Deegan , xen-devel@lists.xen.org, Julien Grall , Tamas KLengyel , Vitaly Kuznetsov List-Id: xen-devel@lists.xenproject.org >>> On 02.07.15 at 18:14, wrote: > On 02/07/15 14:18, Vitaly Kuznetsov wrote: >> 'pfn' and 'start_pfn' are ambiguous, both these functions expect GFNs as input. >> >> On x86 the interface of p2m_set_mem_access() in p2m.c doesn't match the >> declaration in p2m-common.h as 'pfn' is being used instead of 'start_pfn'. >> >> On ARM both p2m_set_mem_access and p2m_get_mem_access interfaces don't match >> declarations from p2m-common.h: p2m_set_mem_access uses 'pfn' instead of >> 'start_pfn' and p2m_get_mem_access uses 'gpfn' instead of 'pfn'. >> >> Convert p2m_get_mem_access/p2m_set_mem_access (and __p2m_get_mem_access on ARM) >> interfaces to using gft_t instead of unsigned long and update all users of >> these functions. >> >> There is also an issue in p2m_get_mem_access on x86: 'gfn' parameter passed to >> gfn_lock/gfn_unlock is not defined. This code compiles only because of a >> coincidence: gfn_lock/gfn_unlock are currently macros which don't use their >> second argument. >> >> Signed-off-by: Vitaly Kuznetsov > > For the ARM bits: > > Reviewed-by: Julien Grall Any chance to get an ARM maintainer ack on this one? Thanks, Jan