Attached is hugepage patch (couple of modifications over last version).
1)Capability check before allocating new hugepages.
2)if munmap touches a hugepage region, then it clears the whole region.
3)*raddr changed to raddr in a call to alloc_hugetlb_pages
thanks,
rohit