Accurate pv

A patch series that rearranges accurate pv to align to current coding styles and also simplifies the code, for instance we remove entirely PVEntry. 

I have split the code in 3 commits for an easier review.

It is a non functional change patch series.