Crying during sex

I recently lost my virginity to my boyfriend, but started crying in the middle of it due to the pain. I was so embarrassed, but he assured me it was fine. Any advice for the next time we have sex? Like, how to make it more comfortable for me?