From: Daniel Stodden Subject: Re: Sharing machine pages among domains Date: Wed, 21 Nov 2007 04:35:34 +0100 Message-ID: <1195616134.15545.123.camel@thinkpad.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Haifeng He Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, 2007-11-20 at 20:26 -0700, Haifeng He wrote: > Hi, >=20 > I have another question about memory sharing among domains(domUs). I kn= ow that > grant table can be used for memory sharing. But my question is if it is= possible > to setup memory sharing before domain starts. For example, suppose > I have 2 domUs: A and B. Before A and B are booted, is it possible to m= ap > certain physical pages of A and B into the same machine pages? Any comm= ent? yes, this is possible. quite a number of pages get 'shared' that way, e.g. the console and xenstore mfns. see e.g. the definition of the start_info struct in the xen headers and see e.g. the domain builder code (tools/libxc/xc_(linux|*)_build.c) on how this is set up from dom0. you might just need to add a few lines to get what you want. regards, daniel --=20 Daniel Stodden LRR - Lehrstuhl f=C3=BCr Rechnertechnik und Rechnerorganisation Institut f=C3=BCr Informatik der TU M=C3=BCnchen D-85748 Garc= hing http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B