Phase diagram of the excitonic insulator