From mboxrd@z Thu Jan 1 00:00:00 1970 From: Akio Takebe Subject: Re: Inter-domain shared memory facility in Xen? Date: Wed, 31 Oct 2007 13:01:07 +0900 Message-ID: References: <1a74a8410710301251o2a317b0bj40362bfd3b6070b4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1a74a8410710301251o2a317b0bj40362bfd3b6070b4@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: David Stone , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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