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] HELP! Grant table issue: WARNING: leaking g.e. and page stil

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] HELP! Grant table issue: WARNING: leaking g.e. and page still in use!
From: "Lily Huang" <ushuanglily@xxxxxxxxx>
Date: Mon, 15 May 2006 14:19:16 -0400
Delivery-date: Mon, 15 May 2006 11:19:39 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=pkk/u5XfNyFnu4FiqeqhL1yUn/nK6uMH1tmdVeK9RFBnxVm/SPD273BHOgW3ptYNCENxVTQ83u5CpP2Pxnw9FGCQ2dGH7Wv2dzZPoOHJpKZm29YGqndGzrcEZ06XszEqxQd6sVmx5WiuXM706yc3m7uzE2Wk15CiGVNoDWtlGe4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
My code often runs into this warning message: WARNING: leaking g.e. and page still in use!

I found that the gnttab.c generate this error message. But I don't know how to get rid of this issue.
Here is what I did in my code:

1. frontend: allocate pages, grant sharing permission to backend,
2. backend remap this page and use it
3. after backend use the shared page, it call  "HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, unmap, invcount);" to end mapping
4. then backend notify the frontend via evtchn
5. upon receiving the signal, the frontend calls "gnttab_end_foreign_access(ref, 0, 0UL);" to stop sharing. I think this is where I got this warning.

Anyone know how to fix this problem? Thanks in advance!

-lily
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] HELP! Grant table issue: WARNING: leaking g.e. and page still in use!, Lily Huang <=