Real Madrid ensured top spot in La Liga at the midway point of the season when Cristiano Ronaldo struck twice in a 3-0 win at Getafe before Lionel Messi's hat-trick helped Barca to a 4-0 win at Deportivo La Coruna.