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