[libvirt] PATCH: Helper for enumerations