sdvirtio: accept multi-queue devices

Sdvirtio supports multiple queues per device.
We only use one queue, but we shouldn't skip the
devices because of that.
This commit is contained in:
Ori Bernstein 2021-05-31 10:59:45 -07:00
parent f0bb6bbcb7
commit c297482269

View file

@ -611,7 +611,7 @@ viopnp(void)
id = 'F';
for(vd = viopnpdevs(TypBlk); vd; vd = vd->next){
if(vd->nqueue != 1)
if(vd->nqueue == 0)
continue;
if((s = malloc(sizeof(*s))) == nil)