one Xavier connect to another Xavier,How to set root port or endpoint port lane reserval

We connect one Xavier as root port to another Xavier as endpoint port,Does it support lane reserval and How to set?

Yes, it supports lane reversal.
It happens automatically (i.e. hardware autonomous) and nothing needs to be done from the software side.