All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Limpach <christian.limpach@gmail.com>
To: Richard <judicator3@gmail.com>
Cc: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>, xen-devel@lists.sourceforge.net
Subject: Re: Page table and memory management
Date: Fri, 4 Mar 2005 01:38:08 +0000	[thread overview]
Message-ID: <3d8eece20503031738669467a0@mail.gmail.com> (raw)
In-Reply-To: <a146ff9b05030314006a47e40d@mail.gmail.com>

On Thu, 3 Mar 2005 17:00:17 -0500, Richard <judicator3@gmail.com> 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

  parent reply	other threads:[~2005-03-04  1:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-03  3:07 Page table and memory management Richard
2005-03-03  9:02 ` Keir Fraser
2005-03-03 22:00   ` Richard
2005-03-03 22:11     ` Richard
2005-03-03 23:48       ` Xen hangs while booting Domain 0 Dhawan, Puneet
2005-03-04  1:38     ` Christian Limpach [this message]
2005-03-04  9:21     ` Page table and memory management Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d8eece20503031738669467a0@mail.gmail.com \
    --to=christian.limpach@gmail.com \
    --cc=Christian.Limpach@cl.cam.ac.uk \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=judicator3@gmail.com \
    --cc=xen-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.