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] Sharing machine pages among domains

To: "Daniel Stodden" <stodden@xxxxxxxxxx>
Subject: Re: [Xen-devel] Sharing machine pages among domains
From: "Haifeng He" <hehaifeng2nd@xxxxxxxxx>
Date: Tue, 20 Nov 2007 21:45:37 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 20 Nov 2007 20:46:15 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=A1vwkqtxztn41ZvdyKcC9/r/VH5zzNhl7JU68icbnZg=; b=NNMEchUrMMeKCJPBC+OV/4+HqNy/lBFoAIunXOni8IJw6VFMMvZMVVEO3YIg2K4nanKTDFikaBEqxRVLTuT5Y8EpBeULDQ1dB4/UJLXApMD+pcAf6fqi0HxCRZSSXk/Os9BKake1lLqs/TyWbfs4+lFKgayje7PZSVhJeR8Y6UM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tWYZVvVtptIDUIIWz/zKL2LP3yYe5b8Z1AAMjSKyuTUHDR6mGAFaXsn9RdnPEIlwfwQ4cYjNyff1LVHGLLesziUVv6fw4Jpm6SykWxNVkHovxoV7qDEcKox66ZALQ1H2WfzWb7Cq69xR4jDyjLySKhLBfriX4DQ4bq2t2ei4LLA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1195616134.15545.123.camel@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <ab08258e0711201926r5ea9877dvb0dc175df90720fe@xxxxxxxxxxxxxx> <1195616134.15545.123.camel@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 11/20/07, Daniel Stodden <stodden@xxxxxxxxxx> wrote:
>
> On Tue, 2007-11-20 at 20:26 -0700, Haifeng He wrote:
> > Hi,
> >
> > I have another question about memory sharing among domains(domUs). I know
> 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 map
> > certain physical pages of A and B into the same machine pages? Any
> comment?
>
> 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.
>

Thank you for your reply. I checked the above code.
If I understand correctly, the page sharing of console and xenstore is
between dom0 and domU instead of between domUs. Secondly,
the mapping is one to one, i.e., one mfn page allocated to domU
is mapped to dom0. However, what I am looking for is, probably one to many
mapping. That is, one mfn page can be mapped into physical page in
multiple domUs and shared by them. Any idea?

Thanks

Haifeng

> regards,
> daniel
>
> --
> Daniel Stodden
> LRR     -      Lehrstuhl für Rechnertechnik und Rechnerorganisation
> Institut für Informatik der TU München             D-85748 Garching
> http://www.lrr.in.tum.de/~stodden         mailto:stodden@xxxxxxxxxx
> PGP Fingerprint: F5A4 1575 4C56 E26A 0B33  3D80 457E 82AE B0D8 735B
>
>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel