From: Tim Deegan Subject: Re: Questions about sh_prefetch and log_dirty Date: Wed, 24 Jun 2009 14:11:44 +0100 Message-ID: <20090624131144.GR16056@york.uk.xensource.com> References: <4A410663.7010507@pku.edu.cn> <20090624102238.GQ16056@york.uk.xensource.com> <4A42253A.7070105@pku.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <4A42253A.7070105@pku.edu.cn> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: David Knight Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org At 14:08 +0100 on 24 Jun (1245852490), David Knight wrote: > Could it be possible that xen is in log_dirty_mode when a DomU is > immigrating into it ? No; and if it were it wouldn't matter since the domain being migrated into isn't running. Cheers, Tim. > >> I just want to make the faulted page and its following > >> pages writable and marked as dirty after a write_protect > >> page_fault. The function "sh_prebuild" is called in the > >> sh_page_fault() right before sh_prefetch(): > >> > >> ---------------sh_page_fault()----------------- > >> > >> if ( ( shadow_mode_log_dirty(v->domain) ) > >> && ( ft == ft_demand_write ) ) > >> sh_prebuild(.......); > >> > >> .............. > >> > >> I got problems when I migrate. The code can successfully > >> migrate the domainU to another UNMODIFIED Xen. But when I > >> migrate a domainU from UNMODIFIED Xen back to this MODIFIED > >> Xen, the domU's clock is frozen, I use "xm console" to get > >> in domU's console, but I just got about 6 TSC error messages > >> and no other respond. > >> > >> I am using 32-bit PV domain, no-PSE. > >> Does someone know any reasons? Thanks. > >> > >> > >> > >> _______________________________________________ > >> Xen-devel mailing list > >> Xen-devel@lists.xensource.com > >> http://lists.xensource.com/xen-devel > > > > -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]