🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #30

[Bug 299244] [PATCH] virtio_console ignores RX flow control, drops data

#30
From: bugzilla-noreply
Date: Fri, 09 Oct 2026 08:59
54 lines
3728 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299244

            Bug ID: 299244
           Summary: [PATCH] virtio_console ignores RX flow control, drops
                    data
           Product: Base System
           Version: 15.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: equinox@diac24.net

Created attachment 275515
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=275515&action=edit
hacky patch

The virtio_console driver just completely ignores the return value from the tty
layer and keeps piling on data.  Needless to say, this doesn't work
particularly well for any nontrivial amount of data getting shoveled in and
gives a rather irritating admin experience. ("slow paste" in terminal clients,
anyone?)

Testing by dumping a 4MB file into a virtio console, on average I got 30
kilobytes (!!!) to arrive.  (Part of the problem there is that the
virtio_console driver *also* doesn't use the bypass path, delivering a byte at
a time instead.)

I've attached a hacky, "unclean" patch.  It seems to work reliably for me but I
might have overlooked something.  (In particular, not sure about cleaning up
hiwat_buf at device shutdown/destroy.)

I also have no idea how contributing patches to FreeBSD works; if anyone wants
to take this off my hands that'd be much appreciated.

Patch is on top of 21f25cc80de2f9f35d7698bf355b0353da45dbc7 (stable/15).

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-299244-227@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 299244] [PATCH] virtio_console ignores RX flow control, drops
 data
Date: Fri, 09 Oct 2026 08:59:16 +0000
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-bugs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-299244-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="78222"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1791536356;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=rM5J/cBvHN69q0hNywcbp30d9J8uKK/6du8P9AXap6o=;
	b=VmZsG8gISJc9kkPukiGC8H6qvd77+3CYEbWqew2yi19LV5bP5jB5RTA3d3zbo6uPxTTgd/
	FJMLIk8HYyRz1WdNOvwAd+jogTqbz0zEUmeiiVjPgSQESN4raUcWE3d5y/JDIeeguBJcUM
	fN7kp/8nWSJqk/AvOaYzK1R4pW0oRQSnqeKH3nAGGZW77U8CcDDdgH7GZu2A1/amvif+3o
	DyU0XKBYklJWdekJKpeZoIjblgiXn4FByvGrhD/d7P4dFS1u2/WFkM94yNq5N9Jtq6re9i
	eRcnMmYZi2O4rLkKOv0hQn38fBkKU0zADEnpNOqOQ+5ojqTxe3dupffXxXx68w==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes