[libvirt] support for qemu werror and rerror