From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Martin Subject: Re: Grant access to more than one dom Date: Thu, 17 Apr 2014 12:38:54 -0300 Message-ID: <197873202.20140417123854@gmail.com> References: <1005757746.20140417115849@gmail.com> <1397747022.24638.306.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1397747022.24638.306.camel@kazak.uk.xensource.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: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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, also any chance that this could make it's way back into kernel source? -- Best regards, Simon mailto:furryfuttock@gmail.com