]> git.ipfire.org Git - thirdparty/qemu.git/commit
char: restore read callback on a reattached (hotplug) chardev
authorGal Hammer <ghammer@redhat.com>
Tue, 25 Feb 2014 10:12:35 +0000 (12:12 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 20 Jun 2014 13:19:49 +0000 (08:19 -0500)
commit248de52cf84185b3bafea8ba31333bd0d7a34893
tree5e62719b91a67fd2eb14f59a8b7fce99061b8e9f
parentba014af39c6f9ee5af70d39ef495ac9f2bd4a76c
char: restore read callback on a reattached (hotplug) chardev

Fix a bug that was introduced in commit 386a5a1e. A removal of a device
set the chr handlers to NULL. However when the device is plugged back,
its read callback is not restored so data can't be transferred from the
host to the guest (e.g. via the virtio-serial port).

https://bugzilla.redhat.com/show_bug.cgi?id=1027181

Signed-off-by: Gal Hammer <ghammer@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit ac1b84dd1e020648db82a99260891aa982d1142c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qemu-char.c