Skip to content

virtiorng.device 1.1 Kickstart / 1.2 disk (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

virtiorng.device 1.1 / 1.2 (beta): an entropy (random number) device for QEMU's virtio-rng card (virtio-rng-pci), for AmigaOS 4.1 Final Edition running in QEMU. Programs read random bytes from the host with CMD_READ.

In the archive (two builds of the same driver: use one)

  • DEVS/virtiorng.device (1.2): loaded from DEVS: when first opened, unloaded when no longer used. The simplest way in.
  • Kickstart/virtiorng.device (1.1): a Kickstart module, started at boot, with a self-test on the serial output.
  • rngread: checks the device (nine checks: reads, aborts, flushes, recovery after a device reset, an odd-sized read at an odd address).
  • ReadMe: install steps for both builds.

Install

  1. Add -device virtio-rng-pci to your QEMU command line (up to four cards; each is a unit).
  2. Disk build: Copy DEVS/virtiorng.device DEVS: — or the Kickstart build: add Kickstart/virtiorng.device and a MODULE Kickstart/virtiorng.device line to your Kicklayout (see the ReadMe).
  3. Run rngread.

Tested

QEMU 11.0.50 on the AmigaOne, Pegasos II and Sam460ex machines. These builds on QEMU's AmigaOne: Kickstart 1.1 self-test PASSED and rngread 9/9; disk 1.2 rngread 9/9.

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

SHA-256 of virtiorng-1.2.lha: 78f080f60c19a7a507fd9ff91847699f188d48d3aeea5bd9fb3c9ba8690f0763