From: Keir Fraser Subject: Re: Xeno Linux never pins L1 tables ? Date: Tue, 16 Oct 2007 15:47:31 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0617523799==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Satya , Xen-devel List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0617523799== Content-type: multipart/alternative; boundary="B_3275394453_43452377" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3275394453_43452377 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit PTEs end up pinned by virtue of being referenced via a pinned PGD. When a PGD is pinned Xen walks the whole pagetable structure. -- Keir On 16/10/07 15:44, "Satya" wrote: > hi, > I'm developing my own 32-bit (no PAE) paravirtualized kernel for xen with > Mini-OS as a starting point. I am currently working on process page table > support (equivalent of arch/i386/mm/pgtable-xen.c) and mostly following Linux > for the moment. I noticed that linux-2.6.18-xen never pins an L1 table (a > pte), yet __pgd_pin() walks the page directory and gives up write access on > the kernel mappings of pte pages and only pins the pgd page. How do set_pte() > and set_pte_at() macros work if they are writing directly to the page table > entires ? do we fault in the kernel to handle this ?! > > thanks, > satya. > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel --B_3275394453_43452377 Content-type: text/html; charset="US-ASCII" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Xeno Linux never pins L1 tables ? PTEs = end up pinned by virtue of being referenced via a pinned PGD. When a PGD is = pinned Xen walks the whole pagetable structure.

 -- Keir

On 16/10/07 15:44, "Satya" <satyakiran@gmail.com> wrote:
hi,
I'm developing my own 32-bit (no PAE) paravirtualized kernel for xen with M= ini-OS as a starting point. I am currently working on process page table sup= port (equivalent of arch/i386/mm/pgtable-xen.c) and mostly following Linux f= or the moment. I noticed that linux-2.6.18-xen never pins an L1 table (a pte= ), yet __pgd_pin() walks the page directory and gives up write access on the= kernel mappings of pte pages and only pins the pgd page. How do set_pte() a= nd set_pte_at() macros work if they are writing directly to the page table e= ntires ? do we fault in the kernel to handle this ?!

thanks,
satya.




____________________= ___________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/x= en-devel

--B_3275394453_43452377-- --===============0617523799== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0617523799==--