Skip to contentSkip to conversation

HELP! Grant table issue: WARNING: leaking g.e. and page still in use!

DISCUSSION Lily Huang 1 participant 1 message May 15, 2006

lore
Share & tools
lore

Lily Huang

author
#0 lore raw

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
[email protected]
http://lists.xensource.com/xen-devel