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>
Showing
- hw/scsi/vhost-user-scsi.c 1 addition, 1 deletionhw/scsi/vhost-user-scsi.c
- hw/scsi/virtio-scsi.c 4 additions, 3 deletionshw/scsi/virtio-scsi.c
- hw/virtio/vhost-scsi-pci.c 2 additions, 1 deletionhw/virtio/vhost-scsi-pci.c
- hw/virtio/vhost-user-scsi-pci.c 2 additions, 1 deletionhw/virtio/vhost-user-scsi-pci.c
- hw/virtio/virtio-scsi-pci.c 2 additions, 1 deletionhw/virtio/virtio-scsi-pci.c
- include/hw/virtio/virtio-scsi.h 3 additions, 0 deletionsinclude/hw/virtio/virtio-scsi.h
Please register or sign in to comment