[libvirt] [PATCH 5/5] qemu: Connect to guest agent after channel hotplug

Michal Privoznik mprivozn at redhat.com
Fri Apr 24 15:09:14 UTC 2015


On 24.04.2015 16:52, Peter Krempa wrote:
> 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  | 35 +++++++++++++++++++++++++++++++----
>  src/qemu/qemu_process.c |  2 +-
>  src/qemu/qemu_process.h |  2 ++
>  3 files changed, 34 insertions(+), 5 deletions(-)
> 

Finally. I had this in my mind for a while, but always thought it's
gonna be more complex so I've put it aside. But now that I see we have
everything prepared, how silly my thinking was. Good job.

Michal




More information about the libvir-list mailing list