From: Keir Fraser Subject: Re: [PATCH] Handle PoD case in hvm_hap_nested_page_fault() Date: Wed, 06 Jan 2010 12:49:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: 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: George Dunlap , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org I checked in a different version as c/s 20763: take a look. It's questionable whether returning 0 from the function is ever a sensible thing. I suppose at least this way we have to have considered all cases properly. At least I think we won't change it during the 4.0.0 freeze. -- Keir On 06/01/2010 12:19, "George Dunlap" wrote: > The new combined nested page fault handling doesn't consider the case > where the gfn_to_mfn() translation caused the page to be transparently > populated. Attached patch is one solution; a more robust solution > would be to take the access type (read or write) and check it against > the type returned by gfn_to_mfn() to handle spurious NPFs as well (if > such things ever happen). > > Signed-off-by: George Dunlap