]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: agent: Differentiate errors when the agent channel was hotplugged
authorPeter Krempa <pkrempa@redhat.com>
Fri, 24 Apr 2015 14:43:38 +0000 (16:43 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Sun, 26 Apr 2015 15:19:22 +0000 (17:19 +0200)
commite1c04108d7602133d74c815929df2c81178d8dde
treeefc5b1a4172462757e8f466399aa7453fe8207e7
parentdcbb243bbc3470431d15cec4c5bb96d2de89a88b
qemu: agent: Differentiate errors when the agent channel was hotplugged

When the guest agent channel gets hotplugged to a VM, libvirt would
still report that "QEMU guest agent is not configured" rather than
stating that the connection was not established yet.

Currently the code won't be able to connect to the agent after hotplug
but that will change in a later patch.

As the qemuFindAgentConfig() helper is quite helpful in this case move
it to a more usable place and export it.
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_process.c