[libvirt] [PATCH v3 11/14] migration: refactor: introduce parameter checking function