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).
This commit is contained in:
Michael Forney 2022-01-24 23:48:13 +00:00 committed by Ori Bernstein
parent 8dc8e3a019
commit 2833aecc68

View file

@ -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;