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