[libvirt] [PATCH 09/22] qemu: Migrate sheepdog source generation into common function