You likely know that it is advisable to sleep with a pillow between your knees to ease back pain. I adopted this practice pre-hip replacement and found it so comfortable that I continue to do it.
If you have longer legs, a king-sized pillow will ensure that the full-length of your legs have support.