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

Re: [Xen-devel] GNTTABOP_unmap_grant_ref

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.

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

Xen-devel mailing list



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