ref: d21f86bba4333494e3e772f031a5ac81f0f47d0f
parent: a3bbc2c153dca2a4125a834a3f8d44a8c000c5c0
author: Michael Forney <mforney@mforney.org>
date: Mon Jan 24 18:48:13 EST 2022
vmx: fix PCI ID for virtio block devices The transitional PCI device ID for block devices is 0x1001, and the virtio spec says that devices must have the transitional device ID or 0x1040 + the virtio device ID (2).
--- a/sys/src/cmd/vmx/virtio.c
+++ b/sys/src/cmd/vmx/virtio.c
@@ -792,7 +792,7 @@
fd = open(fn, ORDWR);
if(fd < 0) return -1;
- d = mkviodev(0x1000, 0x018000, 2, 1);
+ d = mkviodev(0x1001, 0x018000, 2, 1);
mkvioqueue(d, 32, viowakeup);
d->io = vioblkio;
d->blk.fd = fd;
--
⑨