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:
parent
8dc8e3a019
commit
2833aecc68
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue