The starting point was the implementation at POWER9BSD. From there, I've removed all POWER9 specific code and added a few new methods in PPC64 MMU interface, to isolate platform specific code.
For now, the new methods were implemented only on pseriesCurrently, but I plan to adthe new methods are implemented on pseries and PowerNV support next(D21643).