WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Grant Table Issue

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: Grant Table Issue
From: "ashoka xen" <ashoka.xen@xxxxxxxxx>
Date: Thu, 29 May 2008 19:08:16 +0530
Delivery-date: Thu, 29 May 2008 06:38:51 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=8ImXs6DQY7bIIkGAJmNz/yiAek7kjbFZga4kNoK8aMA=; b=tB4Ts9ZhEHUs6HfSQ5Fa3KX4tgyCi1gkbJDSWa1h5U+sBuV22ZTYAcec1bpkjQgSGqBNkGwunsE28anqopfgsa7nXLqLBTCliP7lOILLKMbCY616AMAKuxaJD/w6+i0rE1Ui1fQHau6NlkJp9BuLbSATU2CfgDG/AshFUJIzshs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=i9nsMiwI74W3mnFJ09K8uPdYhN+VCcBXtIjidaa0oOzXifvWPfno3PNkygCDdV1AwPEznOO+oEPMnEP5s5d75itNIJrqr1iCGIC5RsMbf+Ozx055iR+1ybFsVUBc1YRKKnaESugWcEj2zIds614pWcar251IKZFsj+NgXma1ZT4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <70b943f30805290301q57247a24y189bb7bb6f5866ce@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <70b943f30805290301q57247a24y189bb7bb6f5866ce@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Sorry for trouble. It was my mistake.
gnttab_grant_foreign_access requires Dom0's domain id
whereas gnttab_set_map_op requires DomU's domain id.

Regards,
Ashoka


On Thu, May 29, 2008 at 3:31 PM, ashoka xen <ashoka.xen@xxxxxxxxx> wrote:
Hello

I am facing a problem in using grant tables. DomU allocates a page and passes grant reference to Dom0. When Dom0 tries to map the shared page, it gives following error:

(XEN) grant_table.c:264:d0 Bad flags (1) or dom (1). (expected dom 0)

Here DomU (id 1) shared a page for read-write access and Dom0 tried to map it using GNTMAP_host_map, read-write access. CPU is x86, PAE enabled, tried Xen-3.1.3 and Xen-3.1.4. - same error for both.

If same code is written in two modules - one for DomU and other for Dom0. First a module is inserted into DomU and later other module is inserted into Dom0, the code works fine.

When searched for similar problem, I found following link:

http://lists.xensource.com/archives/html/xen-ppc-devel/2006-06/msg00234.html

Is this a similar problem ?

Regards,
Ashoka

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>