From: Tim Deegan Subject: Re: Re: Making pages writable again in paging_log_dirty mode Date: Mon, 5 Jan 2009 15:00:59 +0000 Message-ID: <20090105150059.GL12729@york.uk.xensource.com> References: <20090102100725.GB12729@york.uk.xensource.com> <20090102172058.GC12729@york.uk.xensource.com> <20090105101107.GD12729@york.uk.xensource.com> <20090105143914.GK12729@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 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: Mike Sun Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 09:54 -0500 on 05 Jan (1231149240), Mike Sun wrote: > For ease of correctness, would using something like validate_g1le() > make all the checks I need (since it calls _sh_propagate down the > line), assuming I call this while in the context of the same domain as > v->domain: Yes, I think so. The page is already dirty so validate_gl1e should DTRT, if not necessarily the fastest way. Of course, if you call it from dom0 you'll end up with the same problem you had before, of get_page_from_l1e() not refcounting correctly. Cheers, Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]