ref: 2833aecc681aec9928c525fc2d8d023dbfe225bc
parent: 8dc8e3a0198f9127c3d48aa2e079ac078aec73e3
author: Michael Forney <[email protected]>
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;