Technically the maximum length for a CAT5 cross over cable is 100m. So I expect you'll be fine with 10m. At worst you could always make a cable and try it, even if it means temporarily moving one of the computers next to the other and just having a bundle of cable between the two.