From: Tim Deegan Subject: Re: [PATCH 3 of 3] Fix liveness of pages in grant copy operations Date: Thu, 24 Nov 2011 17:07:37 +0000 Message-ID: <20111124170737.GP77868@ocelot.phlegethon.org> References: <9e44fd6e495518af3ac2.1322142093@xdev.gridcentric.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <9e44fd6e495518af3ac2.1322142093@xdev.gridcentric.ca> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andres Lagar-Cavilla Cc: andres@gridcentric.ca, xen-devel@lists.xensource.com, keir.xen@gmail.com, JBeulich@suse.com, adin@gridcentric.ca List-Id: xen-devel@lists.xenproject.org At 08:41 -0500 on 24 Nov (1322124093), Andres Lagar-Cavilla wrote: > We were immediately putting the p2m entry translation for grant > copy operations. This allowed for an unnecessary race by which the > page could have been swapped out between the p2m lookup and the actual > use. Hold on to the p2m entries until the grant operation finishes. > > Also fixes a small bug: for the source page of the copy, get_page > was assuming the page was owned by the source domain. It may be a > shared page, since we don't perform an unsharing p2m lookup. > > Signed-off-by: Andres Lagar-Cavilla Applied, thanks. Tim.