The last two Europeans known to be XY with DSDs to compete in elite level international women's sports were women's World Cup alpine ski champion Erika (now Erik) Schinegger of Austria and Maria Jose Martinez Patino.
Schinegger, who has a DSD similar to Semenya's, was booted out of skiing shortly before the 1968 Winter Olympics by Austrian sports officials, and decided to bow out gracefully. He had surgery to "fix" his genital anomalies and went on to marry a woman with whom he fathered a daughter with no medical assistance. There's a good documentary about him on YouTube. He's a very decent, likable guy.
Martinez Patino, who has AIS (sounds like pretty extensive AIS, but it might not be CAIS - the records are unclear) sued the IAAF and won the right to compete in women's sports. The loophole Martinez Patino's lawsuit created allowing athletes with one kind of XY DSD to compete in women's events has been opened up wider and wider to allow in athletes with a host of other, very different kinds of XY DSDs.
Martinez Patino - who has served as a consultant to the IAAF and IOC on eligibility in women's competition - is an interesting case. On the one hand, MP says a main reason MP belongs in women's sports is because MP posses "femininity" and "a sure sense of womanliness" and MP's "womanhood" has been tested. On the other hand, MP doesn't think that other athletes with other XY DSDs are so womanly. MP testified against Chand in Chand's lawsuit against the IAAF and Indians sports authorities. Just goes to show there is no solidarity and unanimity in "the DSD community." No real community to speak of either. Not surprising since DSDs comprise 40 or so very different conditions.
The last time that the IOC did mandatory genetic testing on athletes seeking eligibility in women's events was at the 1996 summer Olympic Games in Atlanta. 8 athletes were found to be XY, DSD - but all were given clearance to compete. Six of them had already had their testes removed - which means their DSDs had already been diagnosed and "treated." (I say "treated" because in DSDs, as in most conditions, it's really not a good idea to remove healthy organs - and gonads are really vital organs. Most people with DSDs who keep their gonads do better over the course of their lives in terms of physical health, mental health and intimate relationships than those who undergo gonad removal.)
I imagine there are a lot of XY athletes with CAIS in women's elite sports. Because they can't use the T their testes produce, it gets converted to estrogen and they develop an outwardly female phenotype. They have some advantages over XX female athletes - XY CAIS persons are usually taller and narrower in the hips, plus no cycles, hormone fluctuations, periods, PMS, PMDD, pregnancies, gynecological problems. But if CAIS athletes were the only XY DSD athletes allowed into women's sports, a lot of people would be okay with that. It's all the athletes with other XY DSDs like 5-ARD - most of whom can father children - that are the bone of contention in women's sports, not athletes with CAIS.