Implement vir_to_p (virtual to physical address conversion) function.