Page MenuHomeFreeBSD

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

Authored by markj on Mon, Aug 3, 4:00 PM.
Tags
None
Referenced Files
F165351960: D58625.id183320.diff
Fri, Aug 7, 7:14 PM
F165300648: D58625.id183320.diff
Fri, Aug 7, 12:39 PM
F165290528: D58625.id.diff
Fri, Aug 7, 11:06 AM
F165245061: D58625.id183488.diff
Fri, Aug 7, 3:30 AM
F165244441: D58625.id183320.diff
Fri, Aug 7, 3:23 AM
F165242156: D58625.diff
Fri, Aug 7, 2:52 AM
Unknown Object (File)
Thu, Aug 6, 11:28 PM
Unknown Object (File)
Thu, Aug 6, 7:00 AM
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.Mon, Aug 3, 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.Mon, Aug 3, 6:40 PM
This revision was automatically updated to reflect the committed changes.