What it takes to produce a gravitational repulsion is a negative pressure. According to general relativity, it turns out... both pressures and energy densities can produce gravitational fields, unlike Newtonian physics, where it's only mass densities that produce gravitational fields.