Libvirt hook for qemu