From: Ian Campbell Subject: Re: Grant access to more than one dom Date: Thu, 17 Apr 2014 16:03:42 +0100 Message-ID: <1397747022.24638.306.camel@kazak.uk.xensource.com> References: <1005757746.20140417115849@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1005757746.20140417115849@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Simon Martin Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-17 at 11:58 -0300, Simon Martin wrote: > Hi all, > > The system I am implementing has 2 domU: Windows, and realtime, > and I need to share memory between them. Originally I had the > realtime domU produce a page and which was then consumed by the > Windows domU, however given the way that the realtime domU works, > this can terminate and restart, which will destroy and invalidate > the shared memory page. > > To simplify things I have written a simple little app that runs in > dom0, creates the shared memory page(s) and then starts both the > domUs. If either domU stops, it is automatically restarted, but as > the shared memory belongs to dom0 it stays stable across restarts. > > However I now need to share this grant between multiple domUs. As > far as I can see the grant ref only allows access from a single dom. > How do I work around this? It must be possible, otherwise all driver > implementations would require a memcpy by dom0. Dom0 should create two grant refs, one for each of the other domains. Ian.