From: Tim Deegan Subject: Re: [PATCH] x86/mm: Clean up unshare path for foreign mappings Date: Thu, 28 Jun 2012 12:46:31 +0100 Message-ID: <20120628114631.GI34995@ocelot.phlegethon.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andres Lagar-Cavilla Cc: andres@gridcentric.ca, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 10:48 -0400 on 19 Jun (1340102900), Andres Lagar-Cavilla wrote: > In its current shape, if Xen unshares a foreign gfn successfully while building > a foreign writable map, it is left with a reference to the old shared page in > the "target" var. > > Instead, push unsharing request down on the initial get_page_from_gfn call, > which will DTRT. > > This allows for greatly simplifying the unshare related condition handling, > removing ugly comments and s86_64 ifdef-ery. > > Signed-off-by: Andres Lagar-Cavilla Applied, thanks. Tim.