Skip to contentSkip to conversation

char: udp chardev shouldn't require an explicit open.

PATCH New Gal Hammer 1 participant 1 message Jan 16, 2014

lore
Share & tools
lore

Gal Hammer

author
#0 lore raw

PATCH 1/1 char: udp chardev shouldn't require an explicit open.

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.

---
 qemu-char.c | 2 --
 1 file changed, 2 deletions(-)
qemu-char.c +0 -2
index 30c5a6a..7d138ee 100644
@@ -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;
 }
 
Signature · 1 line
1.8.4.2