From: Keir Fraser Subject: Re: Pinning L1 page table with wrpt Date: Mon, 15 Aug 2005 10:16:21 +0100 Message-ID: <2a86a7bb0db3f43bf5be6744cf793c05@cl.cam.ac.uk> References: <43005285.3030300@diku.dk> <507393ea65cf6247a1e69db53530fead@cl.cam.ac.uk> <43005865.7080208@diku.dk> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <43005865.7080208@diku.dk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jacob Gorm Hansen Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 15 Aug 2005, at 09:55, Jacob Gorm Hansen wrote: > And then Xen will pin them for me recursively, or they will not be > pinned at all but just checked against having writable references? I > seem to have a problem when combining writable pagetables and the > traditional pinned ones in the same domain. The pagetables I inherit > from the domain builder need to be unpinned before I can use the pages > they reference for my own page tables, or I get complaints about trying > to create a writable linear p.t. Xen will infer their type when you pin the L2. At that point, they behave exactly the same as a pinned L1, until they are detached from the pinned L2 or the L2 itself is unpinned. We play games with the initial p.t. in linux 2.6 as well. The code in arch/xen/i386/mm/init.c might be worth looking at, although it's pretty twisted stuff! -- Keir