From: Arne Mejlholm <mejlholm@cs.aau.dk>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: Odd mapping behavior with map_pages_to_xen
Date: Thu, 16 Mar 2006 20:05:47 +0100 [thread overview]
Message-ID: <4419B70B.7060201@cs.aau.dk> (raw)
In-Reply-To: <4f5403f2a706a97a8b0ef6329d417c81@cl.cam.ac.uk>
First of all, thanks for your fast reply :)
Keir Fraser wrote:
>
> Unfortunately you'll only be modifying the idle page table mappings.
> So if you are running on someone else's tables then you won't see the
> new mapping. This can easily happen even in the idle loop, because we
> lazily switch pagetables.
so when the problem appears, we are actually looking at another domains
page tables or and old superpage mapping. That is a quite important
detail :)
> In fact, it would work if the xen heap were mapped with 4kB pages, but
> by default we map with 4MB superpages. So when you change a single 4kB
> mapping the superpage mapping needs replacing with a mapping of a new
> pagetable in the idle pgdir, and that update isn;t reflected in the
> current running pagetables.
so are these superpage mappings only done in the idle domain? Is the
reason for using superpages in the idle domain to avoid flushing the TLB
when running the idle loop or something clever like that?
> If you build Xen with 'debug=y' option then I expect you'll find your
> code works fine. :-)
You expected correctly indeed. I take it that enabling debug either
forces the mappings to be replaced (non-lazily) or does it switch
entirely to 4kb pages?
next prev parent reply other threads:[~2006-03-16 19:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-16 14:24 Odd mapping behavior with map_pages_to_xen Arne Mejlholm
2006-03-16 14:53 ` Keir Fraser
2006-03-16 19:05 ` Arne Mejlholm [this message]
2006-03-17 8:47 ` 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=4419B70B.7060201@cs.aau.dk \
--to=mejlholm@cs.aau.dk \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/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.