From: Tim Deegan Subject: Re: Re: Making pages writable again in paging_log_dirty mode Date: Mon, 5 Jan 2009 15:07:14 +0000 Message-ID: <20090105150714.GM12729@york.uk.xensource.com> References: <20090102100725.GB12729@york.uk.xensource.com> <20090102172058.GC12729@york.uk.xensource.com> <20090105101107.GD12729@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:24 -0500 on 05 Jan (1231147482), Mike Sun wrote: > Ah yes, I should probably explain what I'm doing. I'm using the > log-dirty mode to catch any writes to pages that I haven't yet > "copied" via a background copy mechanism, similar to the live > migration copy. If I have copied it already, then I manually mark it > dirty to indicate that it can be made writable again. That's what I'm > trying to do in this code. Erm, did you know that if you mark the page as dirty the normal page-fault path will fix up the shadow PTEs the next time they cause a write fault? Not as fast as fixing them all in bulk (a few thousand cycles for each pagefault and VMEXIT) but should be functionally correct. Cheers, Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]