From b23df94500df6e761751f12d50836964b26be84f Mon Sep 17 00:00:00 2001 From: Emmanuel Blot Date: Mon, 25 Nov 2024 18:19:59 +0100 Subject: [PATCH] [ot] hw/jtag: tap_ctrl_rbb: ensure socket is configured with nodelay Signed-off-by: Emmanuel Blot --- hw/jtag/tap_ctrl_rbb.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/jtag/tap_ctrl_rbb.c b/hw/jtag/tap_ctrl_rbb.c index 2cd1d72c1e8c..342dce5cd540 100644 --- a/hw/jtag/tap_ctrl_rbb.c +++ b/hw/jtag/tap_ctrl_rbb.c @@ -35,6 +35,7 @@ #include "qapi/error.h" #include "qom/object.h" #include "chardev/char-fe.h" +#include "chardev/char-socket.h" #include "chardev/char.h" #include "hw/jtag/tap_ctrl.h" #include "hw/jtag/tap_ctrl_rbb.h" @@ -511,6 +512,12 @@ static void tap_ctrl_rbb_chr_event_hander(void *opaque, QEMUChrEvent event) return; } + Object *sock; + sock = object_dynamic_cast(OBJECT(tap->chr.chr), TYPE_CHARDEV_SOCKET); + if (sock) { + qio_channel_set_delay(SOCKET_CHARDEV(sock)->ioc, false); + } + tap_ctrl_rbb_tap_reset(tap); } }