vhost-user-scsi: prevent using uninitialized vqs
commit5d4c1ed3d46d7e2010b389fe5f3376f605182ab0
authorRaphael Norwitz <raphael.norwitz@nutanix.com>
Wed, 12 Jun 2019 00:35:17 +0000 (11 17:35 -0700)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 22 Aug 2019 15:52:23 +0000 (22 16:52 +0100)
tree9eeff9b62118cf89b6b8cadc27a1bbb9c6d5a031
parentf0f81002873c06fdef9bb2a272ddfd26af65b851
vhost-user-scsi: prevent using uninitialized vqs

Of the 3 virtqueues, seabios only sets cmd, leaving ctrl
and event without a physical address. This can cause
vhost_verify_ring_part_mapping to return ENOMEM, causing
the following logs:

qemu-system-x86_64: Unable to map available ring for ring 0
qemu-system-x86_64: Verify ring failure on region 0

The qemu commit e6cc11d64fc998c11a4dfcde8fda3fc33a74d844
has already resolved the issue for vhost scsi devices but
the fix was never applied to vhost-user scsi devices.

Signed-off-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1560299717-177734-1-git-send-email-raphael.norwitz@nutanix.com
Message-Id: <1560299717-177734-1-git-send-email-raphael.norwitz@nutanix.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/scsi/vhost-user-scsi.c