[libvirt] [PATCHv2 04/13] snapshot: merge domain and snapshot computation