char: udp chardev shouldn't require an explicit open.
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.
Signed-off-by Gal Hammer <[email protected]>
--- qemu-char.c | 2 -- 1 file changed, 2 deletions(-)
qemu-char.c +0 -2
@@ -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