]> git.proxmox.com Git - mirror_qemu.git/commit
vhost-scsi: add missing virtqueue_size parameter
authorEric Farman <farman@linux.vnet.ibm.com>
Fri, 1 Dec 2017 15:15:38 +0000 (16:15 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Dec 2017 12:38:31 +0000 (12:38 +0000)
commit2994cb2ee244b7d6a00576b4fd178932d8b31439
treebcdfe5a8c2051f13de3f609e9bd44e47adccbb90
parent88f714aa5a9a08bb029024c4ebd3857e3b63b7db
vhost-scsi: add missing virtqueue_size parameter

Commit 5c0919d02066 ("virtio-scsi: Add virtqueue_size parameter allowing
virtqueue size to be set.") introduced a new parameter to virtio-scsi.
Later, commit 920036106044 ("vhost-user-scsi: add missing virtqueue_size
param") added that parameter to the new vhost-user-scsi interface but
neglected the existing vhost-scsi interface it was built on.

Apply the same change to vhost-scsi, so that we can boot a guest with
a device defined.  This also avoids crashing a guest when hotplugging
a vhost-scsi device.

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
Message-id: 20171201151538.6844-2-farman@linux.vnet.ibm.com
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/scsi/vhost-scsi.c