From: Ian Campbell Subject: Re: Grant access to more than one dom Date: Thu, 17 Apr 2014 17:14:54 +0100 Message-ID: <1397751294.24638.308.camel@kazak.uk.xensource.com> References: <1005757746.20140417115849@gmail.com> <1397747022.24638.306.camel@kazak.uk.xensource.com> <197873202.20140417123854@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <197873202.20140417123854@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 , Daniel De Graaf Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-17 at 12:38 -0300, Simon Martin wrote: > Hello Ian, > > > Dom0 should create two grant refs, one for each of the other domains. > > Now comes the next question. The dom0 app is running in userspace, so > I am using the /dev/xen/gntalloc device to allocate the pages. Looking > at the IOCTLs defined for this I don't see a function that will take > an existing map index and share it again. > > I've had a quick look at Linux/drivers/xen/gntalloc.c and it doesn't > look too complicated to implement this, however I don't want to tread > on anybody's toes, I shouldn't think any one is working on this, Daniel De Graaf (cc) is the original author. > also any chance that this could make it's way back > into kernel source? I'm not a kernel maintainer, but I don't see why not. Ian.