[libvirt] [PATCHv4 02/15] qemu: consolidate duplicated monitor migration code