Page MenuHomeFreeBSD

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

Authored by rosenfeld_grumpf.hope-2000.org on Dec 4 2025, 6:51 PM.
Tags
None
Referenced Files
F163270218: D54073.id173749.diff
Tue, Jul 21, 3:06 PM
F163263640: D54073.id175089.diff
Tue, Jul 21, 1:48 PM
F163214503: D54073.id178628.diff
Tue, Jul 21, 3:12 AM
Unknown Object (File)
Mon, Jul 20, 12:26 PM
Unknown Object (File)
Mon, Jul 20, 11:31 AM
Unknown Object (File)
Sat, Jul 18, 8:55 PM
Unknown Object (File)
Sat, Jul 18, 5:15 PM
Unknown Object (File)
Wed, Jul 15, 6:57 AM

Details

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 69052
Build 65935: 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
691
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
893

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?

1398

sc->vss_queues can be NULL here.

markj added inline comments.
usr.sbin/bhyve/pci_virtio_scsi.c
893
This revision is now accepted and ready to land.May 26 2026, 1:33 AM
This revision now requires review to proceed.May 26 2026, 7:26 AM
This revision was not accepted when it landed; it landed in state Needs Review.May 26 2026, 4:07 PM
This revision was automatically updated to reflect the committed changes.