[libvirt] [PATCH 1/2] hooks: Add support for capturing hook output