qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] char: udp chardev shouldn't require an explicit open.
@ 2014-01-16 12:59 Gal Hammer
  0 siblings, 0 replies; only message in thread
From: Gal Hammer @ 2014-01-16 12:59 UTC (permalink / raw)
  To: qemu-devel; +Cc: Amit Shah, Gal Hammer

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 <ghammer@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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-16 12:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-16 12:59 [Qemu-devel] [PATCH] char: udp chardev shouldn't require an explicit open Gal Hammer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).