mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 23:10:38 +00:00
vhost-scsi: Clarify vhost_virtqueue_mask argument
vhost_virtqueue_mask takes an "absolute" virtqueue index, while the code looks like it's passing an index that is relative to s->dev.vq_index. In reality, s->dev.vq_index is always zero, so this patch does not make any difference, but the code is clearer. Signed-off-by: Lu Lina <lina.lulina@huawei.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Message-Id: <1437978359-17960-1-git-send-email-arei.gonglei@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
9284f31994
commit
fe2d1a81d9
@ -118,7 +118,7 @@ static int vhost_scsi_start(VHostSCSI *s)
|
|||||||
* enabling/disabling irqfd.
|
* enabling/disabling irqfd.
|
||||||
*/
|
*/
|
||||||
for (i = 0; i < s->dev.nvqs; i++) {
|
for (i = 0; i < s->dev.nvqs; i++) {
|
||||||
vhost_virtqueue_mask(&s->dev, vdev, i, false);
|
vhost_virtqueue_mask(&s->dev, vdev, s->dev.vq_index + i, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user