# require `python3 -m pip install jq` virsh list --name | \ xargs -I '{}' virsh dumpxml '{}' | \ xq '//domain/memory/text()' | \ sed -rn 's@.*<result>(.*)</result>@\1@p' | \ paste -sd+ | \ bc