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] Page table and memory management

To: Richard <judicator3@xxxxxxxxx>
Subject: Re: [Xen-devel] Page table and memory management
From: Christian Limpach <christian.limpach@xxxxxxxxx>
Date: Fri, 4 Mar 2005 01:38:08 +0000
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 04 Mar 2005 01:45:18 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=F9+yAyC/E4NAp27uWdiJD7azq4hVWUZZbn7dZARzyVlRiJx262tlhYMi+csME1oHuztYtFw9BDqUju1Ts8tOUFEqUvRdOyoxSV8OSVfvVTtqkBxllUQI9YOAjVwhddDKMhwmq0fet3/r/R3S2y3Tmi3aLAIfO623k1DN+xfH5uA=
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <a146ff9b05030314006a47e40d@xxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <a146ff9b050302190711a1c1f0@xxxxxxxxxxxxxx> <2fcc2621218074768a944b7fce18ddf3@xxxxxxxxxxxx> <a146ff9b05030314006a47e40d@xxxxxxxxxxxxxx>
Reply-to: Christian.Limpach@xxxxxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
On Thu, 3 Mar 2005 17:00:17 -0500, Richard <judicator3@xxxxxxxxx> wrote:
> > Xen will automatically infer the type when you attach an L1 to an
> > existing L2. Xen will infer the L2 type when the L2 gets used as
> > current pagetable base.
> 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.

The L1 type gets set in get_page_type, when the page's type count is
zero and the page was of a different type until then (code path with
the "On type change" comment).  For this to work, the type count needs
to be zero which it isn't when there is already a writeable mapping to
the page.

You should use a debug=y build of xen, it will tell you why and when
your attempt to use a new L1 page fails.

> 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().

No, you have to make sure the page is not otherwise used, that there
are at most read-only mappings to it.

    christian


-------------------------------------------------------
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel