[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] HELP! Grant table issue: WARNING: leaking g.e. and page still in use!


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.