From: Mark Williamson Subject: Re: Page tables in Xen Date: Fri, 30 Nov 2007 19:08:32 +0000 Message-ID: <200711301908.34059.mark.williamson@cl.cam.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: weiming , Haifeng He List-Id: xen-devel@lists.xenproject.org > In my understanding, in PV, page table is allocated within guest OS, > however, every update will go through xen via explicit hypercalls. > in HVM, those update will be intercepted by xen. In PV, explicit hypercalls are not always used to update the pagetables. Using the "writeable pagetables" API it's possible to update the pagetables simply by writing to the pagetable memory (Xen then traps this and does the appropriate validation before applying the update). These days, explicit hypercalls are still used for batching updates for performance reasons (places where trapping lots of writeable pagetable updates would cause a performance hit). Cheers, Mark > Please correct me if I'm wrong. > > On Nov 28, 2007 5:49 AM, Haifeng He wrote: > > Hi, > > > > I have a question about memory page tables in Xen. As far as I > > understood, every modification > > to page table will go through Xen(hypervisor). Is it so that all page > > tables are actually allocated > > in Xen(hypervisor) instead of guest OS(domain)? Also, is it the case > > that Xen(hypervisor) needs to > > maintain a page table for each process running in every domain? > > > > Thanks > > > > Haifeng > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!