Loading hw/virtio-serial-bus.c +13 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,19 @@ static void do_flush_queued_data(VirtIOSerialPort *port, VirtQueue *vq, abort(); } if (ret == -EAGAIN || (ret >= 0 && ret < buf_size)) { /* * this is a temporary check until chardevs can signal to * frontends that they are writable again. This prevents * the console from going into throttled mode (forever) * if virtio-console is connected to a pty without a * listener. Otherwise the guest spins forever. * We can revert this if * 1: chardevs can notify frondends * 2: the guest driver does not spin in these cases */ if (!info->is_console) { virtio_serial_throttle_port(port, true); } port->iov_idx = i; if (ret > 0) { port->iov_offset += ret; Loading Loading
hw/virtio-serial-bus.c +13 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,19 @@ static void do_flush_queued_data(VirtIOSerialPort *port, VirtQueue *vq, abort(); } if (ret == -EAGAIN || (ret >= 0 && ret < buf_size)) { /* * this is a temporary check until chardevs can signal to * frontends that they are writable again. This prevents * the console from going into throttled mode (forever) * if virtio-console is connected to a pty without a * listener. Otherwise the guest spins forever. * We can revert this if * 1: chardevs can notify frondends * 2: the guest driver does not spin in these cases */ if (!info->is_console) { virtio_serial_throttle_port(port, true); } port->iov_idx = i; if (ret > 0) { port->iov_offset += ret; Loading