[libvirt] [PATCH v2 6/7] qemu: Use virDomainSnapshotState for switch statements