virtio-scsi: introduce a constant for fixed virtqueues
commit4e5163bd844429711b4d60d51030ab83048d80cd
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 18 Aug 2020 14:33:45 +0000 (18 15:33 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Aug 2020 12:29:13 +0000 (27 08:29 -0400)
tree29820fc1a17a409f04402367a8cbcef2b78d595f
parent1436f32a84c3fda61d0d80302e24d641d3f3f839
virtio-scsi: introduce a constant for fixed virtqueues

The event and control virtqueues are always present, regardless of the
multi-queue configuration.  Define a constant so that virtqueue number
calculations are easier to read.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <20200818143348.310613-5-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/scsi/vhost-user-scsi.c
hw/scsi/virtio-scsi.c
hw/virtio/vhost-scsi-pci.c
hw/virtio/vhost-user-scsi-pci.c
hw/virtio/virtio-scsi-pci.c
include/hw/virtio/virtio-scsi.h