From: "Jan Beulich" Subject: Re: [V9 PATCH 6/8] pvh dom0: Add and remove foreign pages Date: Mon, 21 Apr 2014 17:10:50 +0100 Message-ID: <5355511A02000078000B227D@nat28.tlf.novell.com> References: <1397607172-32065-1-git-send-email-mukesh.rathor@oracle.com> <1397607172-32065-7-git-send-email-mukesh.rathor@oracle.com> <534EC5430200007800009ADD@nat28.tlf.novell.com> <20140416183742.50a98472@mantra.us.oracle.com> <534F95E00200007800009D40@nat28.tlf.novell.com> <20140417123653.GA25395@deinos.phlegethon.org> <534FFA32020000780000A077@nat28.tlf.novell.com> <20140418175934.697392f1@mantra.us.oracle.com> 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 1WcGo4-0004ba-3j for xen-devel@lists.xenproject.org; Mon, 21 Apr 2014 16:10:56 +0000 In-Reply-To: <20140418175934.697392f1@mantra.us.oracle.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: mukesh.rathor@oracle.com Cc: George.Dunlap@eu.citrix.com, tim@xen.org, eddie.dong@intel.com, keir.xen@gmail.com, jun.nakajima@intel.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> Mukesh Rathor 04/19/14 3:00 AM >>> >On Thu, 17 Apr 2014 14:58:42 +0100 >"Jan Beulich" wrote: >>Why can't this be done as pages get de-allocated (which is a >>preemptable process already)? > >We are looking for foreign entries in the current privileged domain's >p2m and wanting to release refcnt on them. I don't understand which >pages being de-allocated we would look at? You mean p2m leaf pages? Whenever a last-level P2M page gets released, it could be inspected for holding foreign mappings, and the respective page refs could be released at that point. But I say this without having looked at how cumbersome that might end up being... Jan