A few thoughts: we don't unmap all segments, only those that need to be
remapped. Not sure if that matters. The only external reference we 
resolve between unmapping and mapping is mmap(), which is why we have
that false mmap() call. So, nothing else should access the text segment
between unmap and map in libhugetlbfs. I know libhugetlbfs works on x86
:) I'll think about it further. Maybe someone else will have some ideas.


I couldn't understand this. mmap()/munmap() execution (till syscall
exception is taken) will happen from the text segment only. 
"dummy mmap" call is used only to resolve the symbole... 
(as you had mentioned earlier to avoid the dependency on plt 
which is stored in data segment)....

thanks,
Mehul.

-- 
Nishanth Aravamudan <n...@us.ibm.com>
IBM Linux Technology Center



      
------------------------------------------------------------------------------
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to