Page MenuHomeFreeBSD

bhyve/virtio-scsi: support multiple backends
Needs ReviewPublic

Authored by rosenfeld_grumpf.hope-2000.org on Oct 20 2025, 5:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 3, 3:05 PM
Unknown Object (File)
Fri, Jan 2, 5:42 AM
Unknown Object (File)
Wed, Dec 31, 8:15 AM
Unknown Object (File)
Mon, Dec 29, 2:06 PM
Unknown Object (File)
Fri, Dec 26, 10:46 AM
Unknown Object (File)
Fri, Dec 19, 5:30 AM
Unknown Object (File)
Dec 14 2025, 2:38 PM
Unknown Object (File)
Dec 8 2025, 4:15 PM

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 68277
Build 65160: arc lint + arc unit

Event Timeline