Jason Wang
2021-Apr-16 03:24 UTC
[PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace
? 2021/3/31 ??4:05, Xie Yongji ??:> + } > + case VDUSE_INJECT_VQ_IRQ: > + ret = -EINVAL; > + if (arg >= dev->vq_num) > + break; > + > + ret = 0; > + queue_work(vduse_irq_wq, &dev->vqs[arg].inject); > + break;One additional note: Please use array_index_nospec() for all vqs[idx] access where idx is under the control of userspace to avoid potential spectre exploitation. Thanks