Southampton striker Dani Osvaldo has passed a medical in Turin and signed for Juventus on loan until the end of the season.