[libvirt] [PATCHv1.5 08/27] qemu: Migrate sheepdog source generation into common function