From: Keir Fraser Subject: Re: [PATCH] trivial simplifcation in xen/arch/x86/mm.c Date: Wed, 10 Jan 2007 10:45:08 +0000 Message-ID: References: <45A4C536.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45A4C536.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 10/1/07 09:51, "Jan Beulich" wrote: > Replace mfn_to_page(lXe_get_pfn()) by lXe_get_page(). > > However, what I got surprised by while looking for all of these is that > ptwr_emulated_update() uses gmfn_to_mfn() on the pte loaded from the > emulation context, while ptwr_do_page_fault() doesn't on the pte stored > into that context. Shouldn't these two be symmetric? > > Signed-off-by: Jan Beulich Yes. Shadow_mode_translate without shadow_mode_refcount is horribly broken in various ways, but I'll fix this particular confusion at least. -- Keir