From 6f1624beff84269be5f899a3800aefc2a6c12fb6 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Thu, 28 Apr 2011 15:25:50 -0300 Subject: [RHEL6 qemu-kvm PATCH 2/9] virtio-serial: Don't clear ->have_data() pointer after unplug RH-Author: Amit Shah Message-id: <0ade34184b684e591723df7c1bedcc866abaec74.1304003635.git.amit.shah@redhat.com> Patchwork-id: 23114 O-Subject: [RHEL6.2 qemu-kvm PATCH 2/6] virtio-serial: Don't clear ->have_data() pointer after unplug Bugzilla: 681736 RH-Acked-by: Gerd Hoffmann RH-Acked-by: Markus Armbruster RH-Acked-by: Jes Sorensen After a port unplug operation, the port->info->have_data() pointer was set to NULL. The problem is, the ->info struct is shared by all ports, effectively disabling writes to other ports. Reported-by: juzhang Signed-off-by: Amit Shah (cherry picked from commit fee063c07f20b442ef4bedef834ab0a3bf55b562) Bugzilla: 681736 Signed-off-by: Amit Shah --- hw/virtio-console.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) Signed-off-by: Eduardo Habkost --- hw/virtio-console.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/virtio-console.c b/hw/virtio-console.c index dfb892e..e91f523 100644 --- a/hw/virtio-console.c +++ b/hw/virtio-console.c @@ -132,7 +132,6 @@ static int virtconsole_exitfn(VirtIOSerialDevice *dev) VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port); if (vcon->chr) { - port->info->have_data = NULL; qemu_chr_close(vcon->chr); } -- 1.7.3.2