From: Himanshu Raj Subject: Re: Regarding page table management changes from Xen v1 to Xen v2 (and v3) Date: Wed, 26 Apr 2006 13:56:48 -0400 Message-ID: <20060426175648.GF27766@cc.gatech.edu> References: <20060426153556.GB27766@cc.gatech.edu> <20060426174057.GD27766@cc.gatech.edu> <996dd63a2b16daf5879aff5b6faaf1f7@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <996dd63a2b16daf5879aff5b6faaf1f7@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 Thanks Keir for your prompt reply. In another example, mmapped access to a file, the new approach will incur these two extra faults for every page fault required to bring a file page to page cache, right? Could you tell me another example other than fork when one can use batched PTE modifications. Thanks and best regards, Himanshu On Wed, Apr 26, 2006 at 06:44:24PM +0100, Keir Fraser wrote: > > On 26 Apr 2006, at 18:40, Himanshu Raj wrote: > > >Although, same results can be obtained by doing the v1.2 way, i.e. > >making one > >hypercall requesting these 1024 changes, no? > > > >-Himanshu > > You have to marshal/unmarshal the batched arguments, and insert flushes > all over the place to ensure the requests get flushed before Linux next > tries to read any of the ptes. So the new method is fewer changes to > the guest and no slower for reasonable-sized batches. > > -- Keir -- ------------------------------------------------------------------------- Himanshu Raj PhD Student, GaTech (www.cc.gatech.edu/~rhim) I prefer to receive attachments in an open, non-proprietary format. -------------------------------------------------------------------------