[libvirt] [PATCH v2 4/7] qemu: Factor out qemuDomainSnapshotValidate() helper