From: tgh Subject: Re: Page tables in Xen Date: Thu, 06 Dec 2007 09:03:59 +0800 Message-ID: <47574A7F.2030706@sina.com.cn> 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> <20071205134057.GD7121@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20071205134057.GD7121@york.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Thank you for explanation I have read the code ,and want to comfirm some confusion,and then try to=20 write something new,if nessary the shadow pagetable on demand ,means a whole pagetable copy when the=20 process is scheduled, or just a part of the process's pagetable is copied thanks in advance cheers Tim Deegan =E5=86=99=E9=81=93: > At 20:47 +0800 on 05 Dec (1196887651), tgh wrote: > =20 >> hi >> in the PV mode, when VM is migrated, the shadow page table will be=20 >> created , that is ,the every active process pagetable in the guestOS=20 >> will have a copy in the VMM, while the original one is maintianed as=20 >> virtual-to-physical address mapping , is it right? >> =20 > > Yes, though as I said we only shadow pagetables on demand when they are= used. > > =20 >> then, when the=20 >> guestOS process is scheduled , the shadow page table will be set into=20 >> the CR3 and the CPU address mapping will be worked with the shadow=20 >> pagetable rather than the original one, is it right? >> =20 > > Yes. > > =20 >> while every update=20 >> to the process original pagetable in the guestOS will be trap into the= =20 >> VMM , where the shadow pagetable is updated and coherented with the=20 >> original one, is it right? >> =20 > > Yes. > > Why are you asking this, by the way? Are you trying to write code,=20 > or debug a problem, or write documentation? =20 > > Tim. > > =20