vmm: Add num_queues and queue_size parameters to virtio-blk

The number of queues and the size of each queue were not configurable.
In anticipation for adding multiqueue support, this commit introduces
some new parameters to let the user decide about the number of queues
and the queue size.

Note that the default values for each of these parameters are identical
to the default values used for vhost-user-blk, that is 1 for the number
of queues and 128 for the queue size.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-01-24 16:31:13 +01:00
parent c4b3ed7223
commit 08e47ebd4b
3 changed files with 47 additions and 1 deletions

View File

@@ -122,7 +122,9 @@ fn create_app<'a, 'b>(
.long("disk")
.help(
"Disk parameters \"path=<disk_image_path>,\
readonly=on|off,iommu=on|off\"",
readonly=on|off,iommu=on|off,\
num_queues=<number_of_queues>,\
queue_size=<size_of_each_queue>\"",
)
.takes_value(true)
.min_values(1)