[libvirt PATCH 02/11] qemu_snapshot: create: move XML def validation to separate function