Implements the Backend Program conventions for vhost-user-scsi
RFC PATCH 1/1 Implements the Backend Program conventions for vhost-user-scsi
--- docs/interop/vhost-user.json | 31 +++++++++++++++++++++++++++++++ docs/interop/vhost-user.rst | 17 +++++++++++++++++ 2 files changed, 48 insertions(+)
docs/interop/vhost-user.json +31 -0
@@ -88,6 +88,37 @@ } } +## +# @VHostUserBackendSCSIFeature: +# +# List of vhost user "scsi" features. +# +# @read-only: The --read-only command line option is supported. +# @scsi-file: The --scsi-file command line option is supported. +# +# Since: 5.0 +## +{ + 'enum': 'VHostUserBackendSCSIFeature', + 'data': [ 'read-only', 'scsi-file' ] +} + +## +# @VHostUserBackendCapabilitiesSCSI: +# +# Capabilities reported by vhost user "scsi" backends +# +# @features: list of supported features. +# +# Since: 5.0 +## +{ + 'struct': 'VHostUserBackendCapabilitiesSCSI', + 'data': { + 'features': [ 'VHostUserBackendSCSIFeature' ] + } +} + ## # @VHostUserBackendInputFeature: #
docs/interop/vhost-user.rst +17 -0
@@ -1603,3 +1603,20 @@ Command line options: Enable read-only. (optional) + +vhost-user-scsi +-------------- + +Command line options: + +--scsi-file=PATH + + Specify block device or file path. + + (optional) + +--read-only + + Enable read-only. + + (optional)
Signature · 1 line
2.17.1
Quoted 5 lines · Sakshi Kaushik
Signed-off-by Sakshi Kaushik <[email protected]>--- docs/interop/vhost-user.json | 31 +++++++++++++++++++++++++++++++ docs/interop/vhost-user.rst | 17 +++++++++++++++++ 2 files changed, 48 insertions(+)
Hi Sakshi,
Thanks for looking into this.
qemu-devel is a high-traffic list and maintainers rely on you to CC them to get their attention so they don't have to read all emails. You can use scripts/get_maintainer.pl -f path/to/source/file.c to find out who to CC. Give it a try next time and that will help your patch get reviews.
This patch defines features for some of the command-line options that the contrib/vhost-user-scsi program has. It is likely that different vhost-user-scsi implementations will have different command-line options because they work in different ways (e.g. connecting to a distributed storage system instead of a local file like --scsi-file). Therefore standardizing these options is probably not necessary for vhost-user-scsi.
(The reason why standard features are important is that some vhost-user devices may have feature sets that are common across device implementations. Unfortunately that's not the case here.)
It would be helpful to change contrib/vhost-user-scsi/vhost-user-scsi.c:main()'s command-line arguments to follow the vhost-user backend program conventions though. If you have time to do that it would be great!
Thanks,
Stefan