All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kip Macy <kmacy@fsmware.com>
To: Ian Pratt <Ian.Pratt@cl.cam.ac.uk>
Cc: "Scheer,    Roque" <roque.scheer@hp.com>,
	xen-devel@lists.sourceforge.net
Subject: Re: Seamlessly sharing identical memory pages among domains
Date: Fri, 21 May 2004 04:21:42 -0700 (PDT)	[thread overview]
Message-ID: <20040521041039.T56068@demos.bsdclusters.com> (raw)
In-Reply-To: <E1BR3xI-0000g9-00@mta1.cl.cam.ac.uk>

>
> Yep. The only slight subtlety is that that the page in question
> may appear in multiple page tables and at multiple VAs: if the
> page is truly read-write shared in the guest (e.g. sysv shared
> memory [*]) then it it will be necessary to find all the ptes and
> patch them to the newly allocated machine frame. I think such
> pages are rare, and tracking them down by scanning the list of
> vma's that are mapping the object (e.g. a file) in question is
> pretty easy and quick. However, this would most sensibly be done
> by making minor modifications to architecture independent code,

Just adding an upcall wouldn't be too terrible. Iterating through the
list of vtop mappings for a page should be fairly light weight.
Politically, the most realistic thing to do is put the arch-independent
code changes in the xen arch-dependent tree wherever possible. I don't
think anyone wants to see xen specific changes going on outside of the
arch subtree.

> [*] Hmm, do memory mapped files behave like this too? I can't
> remember.

If multiple processes share the page read-write, the OS has to have some
way to know about it.



				-Kip


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

  reply	other threads:[~2004-05-21 11:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-20 13:18 Seamlessly sharing identical memory pages among domains Scheer, Roque
2004-05-21  1:17 ` Ian Pratt
2004-05-21  3:58   ` Kip Macy
2004-05-21  6:56     ` Ian Pratt
2004-05-21 11:21       ` Kip Macy [this message]
2004-05-21  5:52   ` Niraj Tolia
  -- strict thread matches above, loose matches on Subject: below --
2004-05-21 11:56 Scheer, Roque
2004-05-21 12:05 ` Ian Pratt
2004-05-21 12:08 ` Steven Hand

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=20040521041039.T56068@demos.bsdclusters.com \
    --to=kmacy@fsmware.com \
    --cc=Ian.Pratt@cl.cam.ac.uk \
    --cc=roque.scheer@hp.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.