From: Tim Deegan Subject: Re: Page tables in Xen Date: Thu, 6 Dec 2007 09:28:24 +0000 Message-ID: <20071206092824.GA4757@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> <20071205134057.GD7121@york.uk.xensource.com> <47574A7F.2030706@sina.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <47574A7F.2030706@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 Hi, At 09:03 +0800 on 06 Dec (1196931839), tgh wrote: > I have read the code ,and want to comfirm some confusion,and then try to > write something new,if nessary What do you want to write? > the shadow pagetable on demand ,means a whole pagetable copy when the > process is scheduled, or just a part of the process's pagetable is copied Pagetable pages are shadowed in shadow_get_and_create_*, called from sh_page_fault(), and in sh_update_cr3(), all in arch/x86/mm/shadow/multi.c. Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems. [Company #5334508: XenSource UK Ltd, reg'd c/o EC2Y 5EB, UK.]