From: Tim Deegan Subject: Re: Page tables in Xen Date: Wed, 5 Dec 2007 13:40:57 +0000 Message-ID: <20071205134057.GD7121@york.uk.xensource.com> References: <1196315351.13722.14.camel@thinkpad.localdomain> <47535CA7.9090000@sina.com.cn> <200712030210.26758.mark.williamson@cl.cam.ac.uk> <47569596.5020905@sina.com.cn> <20071205122408.GC7121@york.uk.xensource.com> <47569DE3.3050400@sina.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <47569DE3.3050400@sina.com.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: tgh Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 20:47 +0800 on 05 Dec (1196887651), tgh wrote: > hi > in the PV mode, when VM is migrated, the shadow page table will be > created , that is ,the every active process pagetable in the guestOS > will have a copy in the VMM, while the original one is maintianed as > virtual-to-physical address mapping , is it right? Yes, though as I said we only shadow pagetables on demand when they are used. > then, when the > guestOS process is scheduled , the shadow page table will be set into > the CR3 and the CPU address mapping will be worked with the shadow > pagetable rather than the original one, is it right? Yes. > while every update > to the process original pagetable in the guestOS will be trap into the > VMM , where the shadow pagetable is updated and coherented with the > original one, is it right? Yes. Why are you asking this, by the way? Are you trying to write code, or debug a problem, or write documentation? Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems. [Company #5334508: XenSource UK Ltd, reg'd c/o EC2Y 5EB, UK.]