[libvirt] [PATCH v2 7/8] util: Add magic number check for object validity