WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Xeno Linux never pins L1 tables ?

To: "Jeremy Fitzhardinge" <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Xeno Linux never pins L1 tables ?
From: Satya <satyakiran@xxxxxxxxx>
Date: Tue, 16 Oct 2007 16:59:26 -0400
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 16 Oct 2007 14:00:07 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=aVWnShOp/zcSXt6JCd/y/1HhPl2Cxp8F0gvZo0vGFhc=; b=osOjkz5ljOhok9O8FWpIGt/JqcoSBDE1HlBKC8LdZ+KSrcUS2ro1mSptJhYrD9vgjh8vuxzZRw5J2mwz38Bb5YFSFswexB4T7S4C+qTCNZtOvGEng1fgvY7cIlCuoUV+BH/DlY3TqEOiqbRykWiqnb1qBifvrNYvjAxh6n7XSsk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=YzFCJDNpSMcEyqau8Rr2w9Yi7sJ27STF0DR5u0KUVy9z8TIK0bdbsxuFxuZHeWXptPylA7zBh3+eV6ldo4ahHTxh1vSafPX0yHm5fHYN3S9hQM1ngEV43JrYqfGxv8hF7VqWI7Rim0ZxHMmOtYdANVT7aI+qyjB/1dPAHSdI3ZM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <471517B9.1040102@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <acbcf3840710160744t52246df7se931e65b4d7651e0@xxxxxxxxxxxxxx> <471517B9.1040102@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


On 10/16/07, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
Satya wrote:
> 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 ?!

Pinning the top level of a pagetable implicitly pins all the lower
levels, so they are all pinned.

Wonder what happens if an L1 page is created *after* a PGD is pinned ? I think I have to explicitly pin the L1 page then? or unlikely( does Xen pin it when I map into into the pinned PGD using a hypercall ) ? :)

thanks,
satya.



 

    J



--
http://cs.uic.edu/~spopuri
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel