[libvirt] [PATCH v2 1/3] qemu: agent: handle agent connection errors in one place