Page MenuHomeFreeBSD

bhyve/virtio-scsi: Make all I/O processing parameters configurable
Needs ReviewPublic

Authored by rosenfeld_grumpf.hope-2000.org on Dec 4 2025, 6:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 17, 9:40 PM
Unknown Object (File)
Sun, May 17, 9:39 PM
Unknown Object (File)
Mon, May 11, 2:43 PM
Unknown Object (File)
Mon, May 11, 1:08 PM
Unknown Object (File)
Mon, May 11, 2:29 AM
Unknown Object (File)
Mon, May 11, 1:48 AM
Unknown Object (File)
Mon, May 11, 12:58 AM
Unknown Object (File)
Sun, May 10, 7:59 PM

Details

Reviewers
jhb
markj
corvink
Group Reviewers
bhyve
Summary

This includes:

  • seg_max, the number of segments allowed in a single command
  • {ctl,evt,req}_ringsz, the number of descriptors in a queue
  • thr_per_q, the number of processing threads per request queue
  • num_queues, the number of request queues

Diff Detail

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

Event Timeline

rosenfeld_grumpf.hope-2000.org retitled this revision from bhyve/virtio-scsi: make all I/O processing parameters configurable to bhyve/virtio-scsi: Make all I/O processing parameters configurable.Feb 19 2026, 7:37 PM
markj added inline comments.
usr.sbin/bhyve/bhyve.8
745
This revision is now accepted and ready to land.Feb 22 2026, 5:30 PM
This revision now requires review to proceed.Mar 12 2026, 8:34 PM
This revision is now accepted and ready to land.Mar 14 2026, 3:06 AM
This revision now requires review to proceed.Mar 14 2026, 11:07 AM

Garbage-collect a comment obsoleted by this change.

This revision is now accepted and ready to land.Mar 20 2026, 2:22 AM
This revision now requires review to proceed.Apr 8 2026, 10:55 AM
usr.sbin/bhyve/pci_virtio_scsi.c
918

I think this stack allocation can be quite large. Is there some reason not to do a heap allocation here, given that this is the control queue?

1466

sc->vss_queues can be NULL here.