Q about msan : mapping 4TB


Porting msan to the Cavium T99 chip requires a VMA mapping of 4TB.

The brute-force way of doing this would be by collecting memory segments that weren’t mapped - from the results of the msan test harness - and creating mapped segments ranges. Lather, rinse, repeat until all the addressable segments are mapped in msan.h.

But I was wondering if there isn’t a more efficient way of accomplishing this mapping.

Any help/suggestions/ideas will be greatly appreciated.

Thank you.