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
F172269738: D54073.id172279.diff
Thu, Sep 17, 9:33 AM
Unknown Object (File)
Fri, Sep 11, 7:01 AM
Unknown Object (File)
Thu, Sep 10, 9:54 PM
Unknown Object (File)
Wed, Sep 9, 7:45 PM
Unknown Object (File)
Tue, Sep 8, 11:51 PM
Unknown Object (File)
Tue, Sep 8, 10:39 PM
Unknown Object (File)
Tue, Sep 8, 7:07 PM
Unknown Object (File)
Tue, Sep 8, 6:28 PM

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 72044
Build 68927: 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
919

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?

1467

sc->vss_queues can be NULL here.

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