[libvirt] [PATCH] Add some missing hook functions