From: "Lily Huang" Subject: HELP! Grant table issue: WARNING: leaking g.e. and page still in use! Date: Mon, 15 May 2006 14:19:16 -0400 Message-ID: <4d616cca0605151119o1d4792c4u502decd10a89545@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1864497803==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1864497803== Content-Type: multipart/alternative; boundary="----=_Part_56359_30115261.1147717156325" ------=_Part_56359_30115261.1147717156325 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline My code often runs into this warning message: WARNING: leaking g.e. and pag= e 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 ------=_Part_56359_30115261.1147717156325 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline My code often runs into this warning message: WARNING: leaking g.e. and pag= e still in use!

I found that the gnttab.c generate this error messag= e. 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, <= br>2. backend remap this page and use it
3. after backend use the shared= page, it call  "HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_r= ef, 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);&q= uot; to stop sharing. I think this is where I got this warning.

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

-lily
------=_Part_56359_30115261.1147717156325-- --===============1864497803== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1864497803==--