From: "Mike Sun" Subject: Re: Sources of page dirtying for HVM domains in Xen 3.2.x Date: Fri, 3 Oct 2008 06:06:17 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Argh. Forgot to reply to the list. Sorry about that Ian. > Within page fault handling you've also got to consider the special cases > of MMIO, PTE accessed/dirty bit update. And the emulated writes to guest PTs as well, correct? One confusing thing is that it seems that since _sh_propagate() is called before the emulated write or MMIO write that the page_dirty() would already be called and that the page_dirty() called after the emulated write is redundant? I'm probably missing something though. > Qemu-dm emulated DMA, PV driver DMA. Any way I can have Qemu not do DMA? Essentially I'm looking for a clean way of doing a copy-on-write on a guest domain's memory pages. The log-dirty mode seems most appropriate, but I have to make sure I can copy the page before it's dirtied/modified. Have any good suggestions.