]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Set virtio channel state sooner
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Jan 2016 10:39:20 +0000 (11:39 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Jan 2016 16:16:29 +0000 (17:16 +0100)
commit2f50445537f9e1f39e484831489a6ac6f9951ce0
treee1f66ba84f17f1b4437c1dfdacc2221013a43bd8
parent6dc0e4f1718743a95050081fc06fa0fe06af281c
qemu: Set virtio channel state sooner

In qemu driver we listen to virtio channel events like an agent
connected to or disconnected from the guest part of socket.
However, with a little exception - when we find out that the
socket in question is the guest agent one, we connect or
disconnect guest agent which is done prior setting new state in
internal structure. Due to a bug in our code it may happen that
we got the event but failed to set it in internal structure
representing the channel.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c