[libvirt] hooks mechanism - possible source code bug