Lily Huang
2006-May-15 18:19 UTC
[Xen-devel] HELP! Grant table issue: WARNING: leaking g.e. and page still in use!
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@lists.xensource.com http://lists.xensource.com/xen-devel