In General Relativity, spacetime is a $4$-dimensional manifold with one Lorentzian metric tensor defined on it. In the Special Relativity case what manifold is spacetime is quite clear: it is essentially $\mathbb{R}^4$ endowed with the metric tensor $\eta_{\mu\nu}=\operatorname{diag}(-1,1,1,1)$.
On the other hand, on General Relativity I can't understand exactly what manifold spacetime is. I'll try to make my point clearer. Some people say: "you can't know this beforehand, the Einstein Field Equations are the source of this information". Now, the Einstein equations are equations for the metric tensor, not for the manifold (this wouldn't even make sense).
But the metric tensor is a tensor field. It is a function defined on spacetime. It only makes sense talking about it, if we know beforehand its domain!
The equation itself is one differential equation for functions defined on $M$, how can we work with those function, if the domain was never defined?
I understand that the field equations give the metric, but I also understand that it doesn't make sense talking about the metric without any knowledge about the manifold where it is being defined.
In that my question is: what manifold $M$ is spacetime in General Relativity?