Xi Jinping and Donald Trump agree to keep the Strait of Hormuz open for global energy flow during a Beijing summit.