A chardev with a UDP backend never send the CHR_EVENT_OPENED
event. This cause the virtio-serial port not to work because
data is dropped when no listner on the host side.

Signed-off-by: Gal Hammer <gham...@redhat.com>
---
 qemu-char.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/qemu-char.c b/qemu-char.c
index 30c5a6a..7d138ee 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -2263,8 +2263,6 @@ static CharDriverState *qemu_chr_open_udp_fd(int fd)
     chr->chr_write = udp_chr_write;
     chr->chr_update_read_handler = udp_chr_update_read_handler;
     chr->chr_close = udp_chr_close;
-    /* be isn't opened until we get a connection */
-    chr->explicit_be_open = true;
     return chr;
 }
 
-- 
1.8.4.2


Reply via email to