qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] vhost-scsi: Fix mask index err in vhost_scsi_st


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] vhost-scsi: Fix mask index err in vhost_scsi_start
Date: Mon, 27 Jul 2015 12:20:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1


On 27/07/2015 08:25, address@hidden wrote:
> +++ b/hw/scsi/vhost-scsi.c
> @@ -117,7 +117,7 @@ static int vhost_scsi_start(VHostSCSI *s)
>       * enabling/disabling irqfd.
>       */
>      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;

Is this fixing an actual bug, or just using the API correctly?
s->dev.vq_index is always 0, right?

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]