From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: Re: [V10 PATCH 3/4] pvh dom0: Add and remove foreign pages Date: Thu, 8 May 2014 15:58:03 -0700 Message-ID: <20140508155803.448efb49@mantra.us.oracle.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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WiXGb-0004DO-2J for xen-devel@lists.xenproject.org; Thu, 08 May 2014 22:58:17 +0000 In-Reply-To: <20140508121650.GE17960@deinos.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: JBeulich@suse.com, George.Dunlap@eu.citrix.com, eddie.dong@intel.com, keir.xen@gmail.com, jun.nakajima@intel.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Thu, 8 May 2014 14:16:50 +0200 Tim Deegan wrote: > At 16:35 -0700 on 02 May (1399044956), Mukesh Rathor wrote: > > > Oh yes -- sorry, I got confused between this and the case where > > > you do use get_pg_owner(). But actually on this subject ISTR > > > objecting to exporting get_pg_owner() from mm.c before. Oh yes, > > > here it is: > > > > > > http://lists.xenproject.org/archives/html/xen-devel/2014-01/msg02612.html > > > > > > So can you use rcu_lock_live_remote_domain_by_id() here instead? > > > > > > In p2m_add_foreign() we already get the rcu lock, still do it here? > > I don't know what you mean by that. p2m_add_foreign() currently > implicitly takes the rcu lock by calling get_pg_owner(); I was > suggecting that you use rcu_lock_live_remote_domain_by_id() instead. Ok, I can revert p2m_add_foreign() back to calling rcu_lock_live_remote_domain_by_id instead of get_pg_owner. I thought you were referring to page_get_owner in atomic_write_ept_entry(). thanks mukesh