From: tgh Subject: Re: Page tables in Xen Date: Wed, 05 Dec 2007 20:47:31 +0800 Message-ID: <47569DE3.3050400@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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20071205122408.GC7121@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: weiming , Haifeng He , xen-devel@lists.xensource.com, Mark Williamson , Daniel Stodden List-Id: xen-devel@lists.xenproject.org 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? 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? 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? Thanks in advance Tim Deegan =E5=86=99=E9=81=93: > At 20:12 +0800 on 05 Dec (1196885526), tgh wrote: > =20 >> hi >> in the PV mode,VM guestOS pagetable is virtual-to-machine address=20 >> mapping,is it right? >> =20 > > Yes. > > =20 >> ,and when a VM is migrated, the shadow page table=20 >> mode will be enabled ,is it right? >> =20 > > Yes. > > =20 >> then, the PVguestOS pagetalbe will=20 >> become the virtual-to-psuedophysical address mapping, or not? >> =20 > > Not. > > =20 >> then ,at=20 >> that time ,the shadow pagetalbe is virtual-to-machine one ,is it right= ? >> =20 > > Yes. > =20 > =20 >> I am still confused ,especially about the PVguestOS pagetalbe when=20 >> shadow pagetable enabled for migration? is it a virtual-to-machine=20 >> address mapping, or a virtual-to-psuedophysical address one ? >> =20 > > *All* shadow pagetables are virtual-to-machine translations. Anything > else wouldn't be much use. > > Cheers, > > Tim. > > =20