China will not allow chaos and war to break out on the Korean peninsula, Chinese President Xi Jinping told a group of Asian ministers.