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
F170572177: D54073.id173686.diff
Sat, Sep 5, 11:25 AM
F170569200: D54073.id175972.diff
Sat, Sep 5, 11:07 AM
F170566161: D54073.id178595.diff
Sat, Sep 5, 10:50 AM
F170514506: D54073.id.diff
Sat, Sep 5, 4:41 AM
F170497378: D54073.id173629.diff
Sat, Sep 5, 2:45 AM
F170486502: D54073.id.diff
Sat, Sep 5, 1:31 AM
F170411385: D54073.id175089.diff
Fri, Sep 4, 5:10 PM
Unknown Object (File)
Fri, Sep 4, 11:09 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 Not Applicable
Unit
Tests Not Applicable

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?

1464

sc->vss_queues can be NULL here.

markj added inline comments.
usr.sbin/bhyve/pci_virtio_scsi.c
918
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.