vhost scsi: Allow user to control num virtqueues
authorMike Christie <michael.christie@oracle.com>
Fri, 8 Jul 2022 03:05:25 +0000 (22:05 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:26:08 +0000 (04:26 -0400)
commitf49c2226af8444563897e25bf293ea29e377995a
tree1dfcb6345f176193b0ec2f84db552f74761c3abb
parent5a4b0420b28fed7e8df81ac7e3b53834142053dd
vhost scsi: Allow user to control num virtqueues

We are currently hard coded to always create 128 IO virtqueues, so this
adds a modparam to control it. For large systems where we are ok with
using memory for virtqueues it allows us to add up to 1024. This limit
was just selected becuase that's qemu's limit.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20220708030525.5065-3-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/scsi.c