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

Re: [Xen-devel] GNTTABOP_unmap_grant_ref

To: "King, Steven R" <steven.r.king@xxxxxxxxx>
Subject: Re: [Xen-devel] GNTTABOP_unmap_grant_ref
From: Muli Ben-Yehuda <mulix@xxxxxxxxx>
Date: Wed, 25 Jan 2006 01:49:49 +0200
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Delivery-date: Tue, 24 Jan 2006 23:58:14 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <44BDAFB888F59F408FAE3CC35AB4704102D88576@orsmsx409>
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>
References: <44BDAFB888F59F408FAE3CC35AB4704102D88576@orsmsx409>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Tue, Jan 24, 2006 at 03:28:55PM -0800, King, Steven R wrote:

> I have not yet found a way to make the GNTTABOP_unmap_grant_ref() call
> in time to avoid the crash.  The driver release() function is too late
> and there's no hook in struct file_operations to handle unmap
> explicitly. 

Could you hook the vma->close function? ISTR it gets called on
unmap. If this is too fine grained or is not called on every munmap
(unmapping of partial VMAs?), you could clean up all mappings when the
file that the application mmap's is closed.

Cheers,
Muli
-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>