[libvirt] [PATCH] util: Simplify hash implementation