summaryrefslogtreecommitdiff
path: root/sys/src/cmd/vmx
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-01-24 23:48:13 +0000
committerOri Bernstein <ori@eigenstate.org>2022-01-24 23:48:13 +0000
commit2833aecc681aec9928c525fc2d8d023dbfe225bc (patch)
tree241e408f81841db73d5c9d1cf59a175db8d0753a /sys/src/cmd/vmx
parent8dc8e3a0198f9127c3d48aa2e079ac078aec73e3 (diff)
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).
Diffstat (limited to 'sys/src/cmd/vmx')
-rw-r--r--sys/src/cmd/vmx/virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/vmx/virtio.c b/sys/src/cmd/vmx/virtio.c
index da0558320..e1034a99a 100644
--- a/sys/src/cmd/vmx/virtio.c
+++ b/sys/src/cmd/vmx/virtio.c
@@ -792,7 +792,7 @@ mkvioblk(char *fn)
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;