All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akio Takebe <takebe_akio@jp.fujitsu.com>
To: David Stone <unclestoner@gmail.com>, xen-devel@lists.xensource.com
Subject: Re: Inter-domain shared memory facility in Xen?
Date: Wed, 31 Oct 2007 13:01:07 +0900	[thread overview]
Message-ID: <D9C81B72AA2D6Btakebe_akio@jp.fujitsu.com> (raw)
In-Reply-To: <1a74a8410710301251o2a317b0bj40362bfd3b6070b4@mail.gmail.com>

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

  reply	other threads:[~2007-10-31  4:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-30 19:51 Inter-domain shared memory facility in Xen? David Stone
2007-10-31  4:01 ` Akio Takebe [this message]
2007-10-31  6:24   ` Haifeng He
2007-10-31  7:27     ` Akio Takebe
     [not found]       ` <1a74a8410711010639s46aada5l2acde76cb73eac3b@mail.gmail.com>
2007-11-01 13:40         ` Fwd: " David Stone
2007-11-01 14:13           ` Daniel Stodden
2007-11-01 14:16           ` Derek Murray
2007-11-01 15:31             ` David Stone
2007-12-03  4:22               ` Mark Williamson

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=D9C81B72AA2D6Btakebe_akio@jp.fujitsu.com \
    --to=takebe_akio@jp.fujitsu.com \
    --cc=unclestoner@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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.