All of lore.kernel.org
 help / color / mirror / Atom feed
From: Derek Murray <Derek.Murray@cl.cam.ac.uk>
To: David Stone <unclestoner@gmail.com>
Cc: xen-devel@lists.xensource.com, takebe_akio@jp.fujitsu.com
Subject: Re: Fwd: Inter-domain shared memory facility in Xen?
Date: Thu, 01 Nov 2007 14:16:43 +0000	[thread overview]
Message-ID: <4729DFCB.8000204@cl.cam.ac.uk> (raw)
In-Reply-To: <1a74a8410711010640t5698e14an1c2b9e36c0cfd966@mail.gmail.com>

David Stone wrote:
> Thanks for your help on this.  So based on your responses I just want
> to confirm my understanding is correct...is it true that:
> 
> 1. It is currently possible to establish shared memory between Dom0
> and DomU, but
> 2. It is currently not possible to establish shared memory between two
> DomUs in an released Xen versions, nor the current xen-unstable branch
> nor any other branch on http://xenbits.xensource.org.  There are
> projects that address this that you mentioned though.

It *is* possible to establish shared memory between two DomUs, using the 
grant table mechanism. At present, it is only possible to grant access 
to memory from a VM kernel, but it is possible to map that granted 
memory into either the kernel (using the kernel wrappers to the 
necessary hypercalls) or user-space (using gntdev, the user-space 
granted memory driver).

Up to and including the current stable release (3.1.1), it is only 
possible for domains that have I/O memory permissions (typically only 
Dom0) to map granted pages. Therefore, it is necessary to give some 
dummy permissions to any domain that you want to allow to map grants. 
However, the issue that led to this restriction has been fixed in the 
current version of xen-unstable.

As I understand it, the other projects that were mentioned provide a 
socket-like communication mechanism for Xen, with the advantage that 
they do not (necessarily) use the networking stack. I presume that you 
are looking for something simpler, such as creating a shared data 
structure between two or more domains. In that case, the mechanisms that 
  exist in Xen today and that I have described above are sufficient for 
your needs.

Regards,

Derek Murray.

  parent reply	other threads:[~2007-11-01 14:16 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
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 [this message]
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=4729DFCB.8000204@cl.cam.ac.uk \
    --to=derek.murray@cl.cam.ac.uk \
    --cc=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.