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] Inter-domain shared memory facility in Xen?

To: "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Inter-domain shared memory facility in Xen?
From: "Haifeng He" <hehaifeng2nd@xxxxxxxxx>
Date: Tue, 30 Oct 2007 23:24:58 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, David Stone <unclestoner@xxxxxxxxx>
Delivery-date: Tue, 30 Oct 2007 23:25:39 -0700
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=XlJCPnPHDb5YDjmH99jjps3NgVjgIemBRqf42TFViu8=; b=HI7eNvTesm9ULP2jgQ27tpUKTFXB458qWJlYcqkgeuYh0xRWXF4b17Fcu3w+KaEtHN0K9aM0RISHkJpB+s1SCnUhlOHjy/WtnMYse1M2yTQzTDroIp+7MjXAUMTGmhODghKcQjCGKiQ5Z1SxjZTfdJLP/0M5TYpnOa0QPB6e79k=
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=mRqQ3TPsUfhYdaMyD4BLJfoHfh6W7jFCXHKH/q6sJWNllg56b0OB5KrZzfDxEFOmIjT/PxCD1RzbKdTFrJZgeXigWKuKvCNgNFR78e2pzl/EoygMJjMj358FeIZK8ne+/vm6RIZmHBWyhxBsiqEeNuBmXXtl9Ptm5iRu60dKxqA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D9C81B72AA2D6Btakebe_akio@xxxxxxxxxxxxxx>
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: <1a74a8410710301251o2a317b0bj40362bfd3b6070b4@xxxxxxxxxxxxxx> <D9C81B72AA2D6Btakebe_akio@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I had a similar question on another email thread and I have a
following question.
If I understand correctly, I need to change the kernels of domUs to make the
sharing happen (explicitly call those APIs). Is it possible to do the
sharing without
changing domUs? In another word, is it possible to let Xen, the hypervisor,
to perform the sharing transparently without modifying domUs.
For example, Xen can share all the identical pages among domUs and
apply Copy-On-Write on them. I guess, it requires changes inside the Xen's
memory management. Any suggestion on how it may be possible?

Thanks

Haifeng

On 10/30/07, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> >Hopefully this question belongs in xen-devel and not xen-users:
> >
> >Is there any kind of inter-domain shared memory facility in Xen?  E.g.
> >an API callable from DomU user-mode that would cause the system sets
> >up two DomU's page tables so they a range of virtual addresses in both
> >resolve to the same set of machine pages?
> You may be able to use grant table.
> Grant table can make shared memroy.
>
> If you want to share memory between dom0 and domU,
> you can use the following fanction.
>
> 1. HYPERVISOR_grant_table_op(GNTTABOP_map_grant_ref) and
>    gnttab_grant_foreign_access()
>        It is kernel API used in blk split driver.
>
> 2. xc_map_foreign_range()
>        It is dom0 user API used in xc_core.c.
>        It can share memory between dom0 user vaddr and domU guest maddr.
>
> If you want to share memory between domU user vaddr and the other domU's,
> you need to make the API.
>
> Best Regards,
>
> Akio Takebe
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

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

<Prev in Thread] Current Thread [Next in Thread>