From: Himanshu Raj Subject: Re: Regarding page table management changes from Xen v1 to Xen v2 (and v3) Date: Wed, 26 Apr 2006 14:52:50 -0400 Message-ID: <20060426185249.GH27766@cc.gatech.edu> References: <20060426153556.GB27766@cc.gatech.edu> <20060426174057.GD27766@cc.gatech.edu> <996dd63a2b16daf5879aff5b6faaf1f7@cl.cam.ac.uk> <20060426175648.GF27766@cc.gatech.edu> <4a88b13604fd55ca3de939753aa53591@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4a88b13604fd55ca3de939753aa53591@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > >Could you tell me another example other than fork when one can use > >batched PTE > >modifications. > > fork() is the only one for us these days. All others use > update_va_mapping(), act on pagetables that aren't pinned (so the guest > can directly update them without faulting) or are infrequent enough we > do not care. Not sure I understand the last part (aren't pinned ...) - my assumptions about page tables are (these apply to both direct mapped and shadow page tables): 1. Always pinned (backed) - so a access to them cannot cause a page unavailable fault. 2. Always read only to guest - so a read access to them is fine, but a write access will cause a protection fault. Both of these faults are reflected as a PG fault. Are you refering to the case when Xen has "detached" the page table page and has made it RW for guest? Thanks for your answers and patience :-). -Himanshu -- ------------------------------------------------------------------------- Himanshu Raj PhD Student, GaTech (www.cc.gatech.edu/~rhim) I prefer to receive attachments in an open, non-proprietary format. -------------------------------------------------------------------------