Ian Campbell writes ("Re: [Xen-devel] [PATCH XEN v6 25/32] tools/libs/gnttab: Extensive updates to API documentation."): > So I think at least call, foreignmemory and gnttab need a > restriction/caveat like the above, which is that on fork but not exec you > can call close() and hope it does something, but unmap is off the table.
Hrm, right. (This all seems rather unsatisfactory but I guess it's where we are. ISTM that part of what's needed is a version of MADV_DONTFORK which causes children to get a mapping of nothing, with PROT_NONE, for the relevant ranges. Then you could safely munmap.) Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel