[libvirt] [PATCH v3 08/14] migration: refactor: extract parameter adaption functions