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