[libvirt] [PATCH v2 02/12] migration: refactor: reuse p2p url check