[libvirt PATCH 06/14] qemu_snapshot: revert: move validation to separate function