From: Tim Deegan Subject: Re: Sources of page dirtying for HVM domains in Xen 3.2.x Date: Tue, 7 Oct 2008 10:04:39 +0100 Message-ID: <20081007090439.GD3780@york.uk.xensource.com> References: <20081003132634.GB3780@york.uk.xensource.com> <20081003155741.GC3780@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 Hi, At 11:34 -0700 on 03 Oct (1223033670), Mike Sun wrote: > Meaning that they're not marked dirty at all? My understanding was > that qemu-dm marked them dirty and that this dirty bitmap for DMA > writes could be accessed. It seems like that's what the live > migration code uses to check for dirtied pages from qemu dma > (init_qemu_maps(), qemu_flip_buffer()). qemu tracks them in its own bitmap. What I meant is there's no marking done inside xen for those writes, so just hooking the log-dirty bitmap there won't catch them. > I can see a need for a > hypercall when qemu does the dirty marking in its code. I may just > save myself some trouble and pre-copy those memory pages instead of > letting them be CoW. Yep, if you can do that from inside qemu, that should be fine. Cheers, Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]