Page MenuHomeFreeBSD

bhyve: Fix assignment of *niov2 in split_iov()
ClosedPublic

Authored by markj on Aug 3 2026, 4:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 30, 4:32 PM
Unknown Object (File)
Wed, Sep 30, 4:32 PM
Unknown Object (File)
Wed, Sep 30, 4:32 PM
Unknown Object (File)
Wed, Sep 30, 7:48 AM
Unknown Object (File)
Wed, Sep 30, 1:54 AM
Unknown Object (File)
Wed, Sep 23, 2:53 AM
Unknown Object (File)
Fri, Sep 11, 7:31 AM
Unknown Object (File)
Wed, Sep 9, 6:51 PM
Subscribers

Details

Summary

niov2 returns the number of entries in the iovec starting at offset
"offset". Here we are unconditionally setting it to 1, which of course
isn't right.

Fixes: a28cf86c4171 ("bhyve/virtio: Rework iovec handling functions for efficiency and clarity")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75350
Build 72233: arc lint + arc unit

Event Timeline

markj requested review of this revision.Aug 3 2026, 4:00 PM

Not sure how to give a proper +1 here. Do I need special permissions for that?

Anyway, LGTM.

Not sure how to give a proper +1 here. Do I need special permissions for that?

I don't think so, at the bottom of the webui there should be a dropdown menu with an "Accept Revision" action.

Anyway, LGTM.

This revision is now accepted and ready to land.Aug 3 2026, 6:40 PM
This revision was automatically updated to reflect the committed changes.