* [PATCH] [PATCH RFC v1] Implements the Backend Program conventions for vhost-user-scsi
@ 2022-03-31 5:55 Sakshi Kaushik
2022-03-31 17:08 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Sakshi Kaushik @ 2022-03-31 5:55 UTC (permalink / raw)
To: qemu-devel; +Cc: Sakshi Kaushik
Signed-off-by: Sakshi Kaushik <sakshikaushik717@gmail.com>
---
docs/interop/vhost-user.json | 31 +++++++++++++++++++++++++++++++
docs/interop/vhost-user.rst | 17 +++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/docs/interop/vhost-user.json b/docs/interop/vhost-user.json
index b6ade9e493..daf6a7c48e 100644
--- a/docs/interop/vhost-user.json
+++ b/docs/interop/vhost-user.json
@@ -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:
#
diff --git a/docs/interop/vhost-user.rst b/docs/interop/vhost-user.rst
index 4dbc84fd00..6f6467ede8 100644
--- a/docs/interop/vhost-user.rst
+++ b/docs/interop/vhost-user.rst
@@ -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)
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] [PATCH RFC v1] Implements the Backend Program conventions for vhost-user-scsi
2022-03-31 5:55 [PATCH] [PATCH RFC v1] Implements the Backend Program conventions for vhost-user-scsi Sakshi Kaushik
@ 2022-03-31 17:08 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2022-03-31 17:08 UTC (permalink / raw)
To: Sakshi Kaushik; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]
On Thu, Mar 31, 2022 at 12:55:36AM -0500, Sakshi Kaushik wrote:
> Signed-off-by: Sakshi Kaushik <sakshikaushik717@gmail.com>
> ---
> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-31 17:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 5:55 [PATCH] [PATCH RFC v1] Implements the Backend Program conventions for vhost-user-scsi Sakshi Kaushik
2022-03-31 17:08 ` Stefan Hajnoczi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.