[libvirt] [PATCH v3 1/2] libxl: refactor libxlDomainMigrationPrepare