[libvirt] [PATCH] Enforce attribute check of the virRegister functions