There was a loss for Xavi because he got 2 yellow cards against Atlhetico Madrid. This allowed Xavi to miss 3 matches. Against Las Palmas, Cadiz and Real Madrid. A disadvantage, because at the moment Barcelona is in improved form. They haven't lost after playing Villareal.
It was regrettable but it was also difficult to avoid because it was in the great tension when facing Atletico before making him do some actions that should not have been done.
Actually, in terms of punishment Xavi will only get a ban of 2 matches to accompany Barcelona on the side of the stands, but because this is the second red card for Xavi, it is possible that he will experience additional punishment and it could be 3 matches passed by Barcelona without Xavi.
But with the situation that is happening now for the first 2 matches against Las Palmas and Cadiz I think it is still very possible for them but it is a different story if it is when facing El Clasico because there must be more encouragement from the coach when big matches like this.