VIRTIO_SCSI(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’… VIRTIO_SCSI πŸ’…

okay so bestie, this is the virtio_scsi manual page β€” it lives in the Kernel Interfaces Manual section, and it's giving very specific "I only talk to virtual machines" energy. Let's get into it ✨


🌸 NAME 🌸

virtio_scsi β€” the VirtIO SCSI driver, aka the little guy that lets your kernel talk to VirtIO SCSI devices πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

So you wanna compile this driver into the kernel? iconic. drop these lines into your kernel configuration file:

device virtio_scsi

or, if you'd rather load it as a module at boot time (lowkey the easier vibe), put this line in loader.conf(5):

virtio_scsi_load="YES"

✨ DESCRIPTION ✨

The virtio_scsi device driver provides support for VirtIO SCSI devices. that's it, that's the whole thing, and honestly? she ate. πŸ’…


🧚 LOADER TUNABLES 🧚

Tunables can be set at the loader(8) prompt before booting the kernel, or stored in loader.conf(5). very much your choice, bestie 🌈

  • hw.vtscsi.bus_reset_disable β€” ngl this one has lore 😭 In the initial QEMU release with VirtIO SCSI support, in-flight operations were not aborted when stopping the device, which rendered bus reset ineffective. so this tunable disables attempts to issue reset bus commands. The default value is 1. periodt.

πŸ’€ DEBUGGING πŸ’€

Wanna enable debugging prints from the virtio_scsi driver? set this variable:

hw.vtscsi.X.debug_level

where X is the adapter number β€” either in loader.conf(5) or via sysctl(8). and here's the bit breakdown, iykyk:

  • 0x01 β€” Enable informational prints.
  • 0x02 β€” Enable prints for driver errors.
  • 0x04 β€” Enable tracing prints.
fr fr, it's a bitmask, so you can stack them. the manpage doesn't say that but like… 0x01 + 0x02 = 0x03. okay moving on πŸ™ˆ

🫢 SEE ALSO 🫢


πŸ‘‘ HISTORY πŸ‘‘

The virtio_scsi driver was written by Bryan Venteicher <bryanv@FreeBSD.org>. It first appeared in FreeBSD 10.0. main character energy tbh πŸŽ€


and that's the whole page, bestie πŸ’– this one came from the Debian gang, dated June 24, 2012, and it's filed under VIRTIO_SCSI(4) in the Kernel Interfaces Manual β€” go forth and virtualize slayfully 🌸✨

πŸ“¦ where this page comes from