Skip to content

virtioscsi.device 1.2 (beta)

Pre-release
Pre-release

Choose a tag to compare

@derfsss derfsss released this 08 Nov 18:00
· 10 commits to main since this release

virtioscsi.device 1.2 (beta): a block device driver for QEMU's virtio-scsi controller (virtio-scsi-pci and -non-transitional), for AmigaOS 4.1 Final Edition running in QEMU. Written in Rust, it is a drop-in replacement for the C VirtualSCSIDevice driver: the same name, loaded from the Kickstart, booting the system disk.

It scans targets 0-7 and LUNs 0-7, answers the trackdisk, TD64 and NSD commands, HD_SCSICMD, geometry and disk-change requests, and keeps up to 16 commands in flight per controller. On QEMU's AmigaOne, SFS ran 2.3 to 23 times as fast as with the C driver, most on random 4 KB I/O.

In the archive

  • Kickstart/virtioscsi.device: replaces the module of the same name in your Kickstart
  • ReadMe: back-up, install and roll-back steps

Install

Back up your kickstart and disk image first: this driver runs your system disk. Then replace Kickstart/virtioscsi.device in the Kickstart your boot loader uses (with bboot, inside the kickstart zip) and reboot. Version virtioscsi.device FULL shows 1.2.

Tested

QEMU 11.0.50, AmigaOne machine, as the driver of the system disk. This build: boots the system disk; 311 system files read and 255 files written matched the C driver byte for byte (the written copies read back on the C driver). The 1.1 drop-in before it passed the full bench: the C driver's own test suite, filesystems, a 30-minute soak.

Known issue

In one of three boots during release testing, Roadshow's "TCP/IP Log" task crashed (a DSI) after Workbench came up. It did not recur in later boots, and the disk data checks above found no difference from the C driver. Please report it if you see it.

virtio exists only in QEMU: this driver is not for real hardware.

SHA-256 of virtioscsi-1.2.lha: 11bd1aed96fd13812ca154c1277c0272e1ce59f95a94967d0b62dd380319d905