Page MenuHomeFreeBSD

bhyve/virtio-scsi: Support multiple backends
AcceptedPublic

Authored by rosenfeld_grumpf.hope-2000.org on Oct 20 2025, 5:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Feb 24, 11:25 AM
Unknown Object (File)
Mon, Feb 23, 10:01 PM
Unknown Object (File)
Mon, Feb 23, 12:29 PM
Unknown Object (File)
Mon, Feb 23, 7:32 AM
Unknown Object (File)
Sun, Feb 22, 5:01 PM
Unknown Object (File)
Sun, Feb 22, 5:01 PM
Unknown Object (File)
Wed, Feb 18, 2:42 PM
Unknown Object (File)
Tue, Feb 17, 1:14 AM

Details

Reviewers
jhb
corvink
markj
Group Reviewers
bhyve
Summary

In order to support multiple backends for virtio-scsi, we should isolate
the core of virtio-scsi from the backend-specific code. The existing
interface to CTL will become the new "CTL" backend for virtio-scsi.

Care has been taken to keep compatibility with previous configurations:
The first backend linked (CTL) will be the default backend if none is
specified, and it does provide a default configuration if no further
options such as targets are explicitly configured.

This is currently also under review in illumos: https://code.illumos.org/c/illumos-gate/+/4425

If you're curious about what another backend does look like, here's the review for the illumos USCSI(4i) backend for SCSI passthrough: https://code.illumos.org/c/illumos-gate/+/4426

Diff Detail

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

Event Timeline

rosenfeld_grumpf.hope-2000.org retitled this revision from bhyve/virtio-scsi: support multiple backends to bhyve/virtio-scsi: Support multiple backends.Thu, Feb 19, 7:36 PM
markj added inline comments.
usr.sbin/bhyve/pci_virtio_scsi_ctl.c
173

Same style issue below.

This revision is now accepted and ready to land.Sun, Feb 22, 5:24 PM