[libvirt] [PATCH v2.1 07/11] qemu_migration: Move port allocation to a separate func