On Jun 4, 2011, at 9:57 AM, Toru Nishimura wrote: >> Committed By: matt >> Date: Wed May 25 23:58:51 UTC 2011 >> >> Modified Files: >> ... >> Log Message: >> Make uvm_map recognize UVM_FLAG_COLORMATCH which tells uvm_map that the >> 'align' argument specifies the starting color of the KVA range to be >> returned. >> ... >> Make the socket and pipe loan color-safe. >> ... >> Make the mips pmap enforce strict page color (color(VA) == color(PA)). > > Oh, YES! So, NetBSD is now the world's first "VIPT cache aware" OS, isn't > it? Since > the introduction of MIPS R4000, OS designers have been in trouble about how > to make > VM VIPT cache coherent. The answer was simple; make sure to have colour(VA) > == colour(PA).
This is still a work in progress. Right I'm modifying page daemon to treat each color as a separate collection of pages with its own free target, color hand, etc.