From: "Jan Beulich" Subject: Re: [V10 PATCH 3/4] pvh dom0: Add and remove foreign pages Date: Thu, 08 May 2014 14:25:28 +0100 Message-ID: <536BA1E802000078000107F3@mail.emea.novell.com> References: <1398820008-9005-1-git-send-email-mukesh.rathor@oracle.com> <1398820008-9005-4-git-send-email-mukesh.rathor@oracle.com> <20140501161908.GI86038@deinos.phlegethon.org> <20140501184518.2ebccdb8@mantra.us.oracle.com> <20140502085555.GA64491@deinos.phlegethon.org> <20140502163556.32baa414@mantra.us.oracle.com> <20140508121650.GE17960@deinos.phlegethon.org> 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 1WiOKJ-0002QN-SV for xen-devel@lists.xenproject.org; Thu, 08 May 2014 13:25:32 +0000 In-Reply-To: <20140508121650.GE17960@deinos.phlegethon.org> 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: Mukesh Rathor , Tim Deegan Cc: George.Dunlap@eu.citrix.com, xen-devel@lists.xenproject.org, keir.xen@gmail.com, eddie.dong@intel.com, jun.nakajima@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 08.05.14 at 14:16, wrote: > At 16:35 -0700 on 02 May (1399044956), Mukesh Rathor wrote: >> And, btw, that function, p2m_add_foreign(), went from >> >> + if ( (fdid == DOMID_XEN && (fdom = rcu_lock_domain(dom_xen)) == NULL) || >> + (fdid != DOMID_XEN && (fdom = rcu_lock_domain_by_id(fdid)) == NULL) > ) >> + goto out; >> >> to >> >> + fdom = get_pg_owner(foreigndom); >> >> (causing get_pg_owner to be exported) at Jan's comment/suggestion in v8. > > Unless Jan particularly wants to defend that, please don't export > get_pg_owner(). As I said in the link above it doesn't do what you want > anyway (e.g around DOMID_IO). The only reason I suggested using the function was because some other helper function introduced by the patches mostly re-implemented that existing one. If it doesn't do what is needed, there's obviously no point in making it globally accessible. Jan