vmm: Support vhost-user-block via "--disks"

Add a socket and vhost_user parameter to this option so that the same
configuration option can be used for both virtio-block and
vhost-user-block.  For now it is necessary to specify both vhost_user
and socket parameters as auto activation is not yet implemented. The wce
parameter for supporting "Write Cache Enabling" is also added to the
disk configuration.

The original command line parameter is still supported for now and will
be removed in a future release.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-01-28 11:43:15 +00:00
parent 362942fa6e
commit aeeae661fc
3 changed files with 126 additions and 57 deletions

View File

@@ -124,7 +124,9 @@ fn create_app<'a, 'b>(
"Disk parameters \"path=<disk_image_path>,\
readonly=on|off,iommu=on|off,\
num_queues=<number_of_queues>,\
queue_size=<size_of_each_queue>\"",
queue_size=<size_of_each_queue>,
vhost_user=<vhost_user_enable>,socket=<vhost_user_socket_path>,
wce=<true|false, default true>\"",
)
.takes_value(true)
.min_values(1)