Thread View: muc.lists.freebsd.bugs
3 messages
3 total messages
Started by bugzilla-noreply
Fri, 09 Oct 2026 08:59
[Bug 299244] [PATCH] virtio_console ignores RX flow control, drops data
Author: bugzilla-noreply
Date: Fri, 09 Oct 2026 08:59
Date: Fri, 09 Oct 2026 08:59
54 lines
3728 bytes
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
[Bug 299244] virtio_console ignores RX flow control, drops data
Author: bugzilla-noreply
Date: Wed, 14 Oct 2026 18:37
Date: Wed, 14 Oct 2026 18:37
41 lines
3714 bytes
3714 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299244
Faraz Vahedi <kfv@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kfv@FreeBSD.org
--- Comment #1 from Faraz Vahedi <kfv@FreeBSD.org> ---
Thanks a lot for the report and the patch, and for digging into it!
I was aware of this one and am planning to tackle it as part of
some work I'm doing on virtio_console(4) at the moment. I'll
surely reuse parts of your patch, but it can't go in as is: the
tty layer already holds the port mutex when it calls
tsw_inwakeup, so taking it again there trips the non-recursive
mutex check on kernels with INVARIANTS, and the receive path is
changing in my series, so the fix needs to fit in with that.
That said, your effort is very much appreciated and you'll be
credited in the corresponding commit.
> I also have no idea how contributing patches to FreeBSD works
I assume you've seen the Contributing to FreeBSD article, but if
not, you can find it at
https://docs.freebsd.org/en/articles/contributing/.
You can send your patches here, on reviews.FreeBSD.org, or as
GitHub pull requests for smaller changes. Do not hesitate to
contact us if you need further guidance or a hand to get started.
Again, thanks a lot for your help, David.
--
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
[Bug 299244] virtio_console ignores RX flow control, drops data
Author: bugzilla-noreply
Date: Wed, 14 Oct 2026 18:39
Date: Wed, 14 Oct 2026 18:39
16 lines
2592 bytes
2592 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299244
Faraz Vahedi <kfv@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |kfv@FreeBSD.org
--
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads