From: Tim Deegan Subject: Re: [PATCH 5 of 9] x86/mm: Ensure maps used by nested hvm code cannot be paged out Date: Thu, 1 Dec 2011 14:36:36 +0000 Message-ID: <20111201143636.GE61203@ocelot.phlegethon.org> References: <4ED60F1D02000078000644C4@nat28.tlf.novell.com> <20111201142729.GD61203@ocelot.phlegethon.org> 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.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andres Lagar-Cavilla Cc: xen-devel@lists.xensource.com, ian.campbell@citrix.com, andres@gridcentric.ca, keir.xen@gmail.com, Jan Beulich , ian.jackson@citrix.com, adin@gridcentric.ca List-Id: xen-devel@lists.xenproject.org At 06:29 -0800 on 01 Dec (1322720982), Andres Lagar-Cavilla wrote: > >> This can (at least theoretically) fail, and you must handle failure (or > >> explain in a comment why not). > > > > Also, you should probably be using get_page(pg, d); is there any > > reason to skip the ownership check? > > Shared pages, owner could be dom_cow. Could conditionally get_page if > writable, page_get_owner_and_ref if non writable. That's probably best, plus a comment saying why. Tim.