From: Keir Fraser Subject: Re: Page table and memory management Date: Fri, 4 Mar 2005 09:21:09 +0000 Message-ID: <6777ec92fc0a8c3eb0f4fbcfaef52cf2@cl.cam.ac.uk> References: <2fcc2621218074768a944b7fce18ddf3@cl.cam.ac.uk> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Richard Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org On 3 Mar 2005, at 22:00, Richard wrote: > So I do not see where XEN is automatically inferring the L1 type when > I am inserting for the 1st time the L1 page frame into the L2. In > order to use a page frame as an L1 page table, I have to find a way to > tell XEN to update the corresponding typeinfo field in order to pass > the verification in get_page_type(). > get_page_from_l2e() will do a get_page_type() on your new page, asserting type PGT_l1_pagetable. If the page was previously untyped or was already an L1 pagetable then the call will succeed, else it will fail. -- Keir ] ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click