]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Connect to guest agent after channel hotplug
authorPeter Krempa <pkrempa@redhat.com>
Fri, 24 Apr 2015 14:48:26 +0000 (16:48 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Sun, 26 Apr 2015 15:19:22 +0000 (17:19 +0200)
commita03e2d3a9927eb2d207dc83e3e45c2e403732330
tree78f738217ce2ca95344dca2a62c0166d7bf5a205
parente1c04108d7602133d74c815929df2c81178d8dde
qemu: Connect to guest agent after channel hotplug

If a user hot-attaches the guest agent channel libvirt would ignore it
until the restart of libvirtd or shutdown/destroy and start of the VM
itself.

This patch adds code that opens or closes the guest agent connection
according to the state of the guest agent channel according to
connect/disconnect events.

To allow opening the channel from the event handler qemuConnectAgent
needed to be exported.
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h