From: Cornelia Huck <cohuck@redhat.com>
To: Hao Chen <chenhaosjtuacm@google.com>
Cc: virtio-dev@lists.oasis-open.org, Enrico Granata <egranata@google.com>
Subject: [virtio-dev] Re: [PATCH v3] Add virtio parameter server device specification
Date: Wed, 19 May 2021 19:01:25 +0200 [thread overview]
Message-ID: <20210519190125.3c421a9c.cohuck@redhat.com> (raw)
In-Reply-To: <CABATKF9BoZQJenux4ju8TpZAmgeoMNGLPj_Dq8YZf6YwGfD8wg@mail.gmail.com>
On Mon, 17 May 2021 12:37:30 -0700
Hao Chen <chenhaosjtuacm@google.com> wrote:
> This patch introduces a new type of device: parameter server. The device
> acts as a key-value store and the driver can read from, write to or
> subscribe to the properties in the server.
>
> Signed-off-by: Hao Chen <chenhaosjtuacm@google.com>
> ---
> conformance.tex | 26 ++++++-
> content.tex | 1 +
> virtio-ps.tex | 197 ++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 220 insertions(+), 4 deletions(-)
> create mode 100644 virtio-ps.tex
Can you please provide some kind of change log?
> diff --git a/conformance.tex b/conformance.tex
> index a164cbb..0d6b1a5 100644
> --- a/conformance.tex
> +++ b/conformance.tex
> @@ -29,8 +29,9 @@ \section{Conformance Targets}\label{sec:Conformance
> / Conformance Targets}
I'm afraid the line wrapping is still happening...
> \ref{sec:Conformance / Driver Conformance / IOMMU Driver Conformance},
> \ref{sec:Conformance / Driver Conformance / Sound Driver Conformance},
> \ref{sec:Conformance / Driver Conformance / Memory Driver Conformance},
> -\ref{sec:Conformance / Driver Conformance / I2C Adapter Driver Conformance} or
> -\ref{sec:Conformance / Driver Conformance / SCMI Driver Conformance}.
> +\ref{sec:Conformance / Driver Conformance / I2C Adapter Driver Conformance},
> +\ref{sec:Conformance / Driver Conformance / SCMI Driver Conformance} or
> +\ref{sec:Conformance / Driver Conformance / Parameter Server Driver
> Conformance}.
>
> \item Clause \ref{sec:Conformance / Legacy Interface:
> Transitional Device and Transitional Driver Conformance}.
> \end{itemize}
(...)
> diff --git a/virtio-ps.tex b/virtio-ps.tex
> new file mode 100644
> index 0000000..f84b211
> --- /dev/null
> +++ b/virtio-ps.tex
> @@ -0,0 +1,197 @@
> +\section{Parameter Server}\label{sec:Device Types / Parameter Server}
> +
> +The parameter server device manages a set of values with unique
> property IDs. These values may
> +either be static (i.e. have a constant value) or be dynamic (i.e.
> value may change over time).
> +The driver can get and set values, get value configurations,
> subscribe and unsubscribe dynamic
> +properties from the device. The driver will get updates when
> subscribed value changes. The device
'a subscribed value', or 'subscribed values', I guess.
You also need to explain what 'subscribed' means. Subscription to
change notifications/updates?
> +processes the requests from the driver, enforces the value access
> rules, and may potentially alter
> +the behavior of external systems as a result of driver operations.
> +
> +\subsection{Device ID}\label{sec:Device Types / Parameter Server / Device ID}
> +
> +38
> +
> +\subsection{Virtqueues}\label{sec:Device Types / Parameter Server / Virtqueues}
> +
> +\begin{description}
> +\item[0] cmdq
> +\item[1] eventq
> +\end{description}
> +
> +\subsection{Feature Bits}\label{sec:Device Types / Parameter Server /
> Feature Bits}
> +
> +None currently defined.
> +
> +\subsection{Device Configuration Layout}\label{sec:Device Types /
> Parameter Server / Device Configuration Layout}
> +
> +\begin{lstlisting}
> +struct virtio_parameter_server_config {
> + char name[128];
> +};
> +\end{lstlisting}
> +
> +A device configuration space only contains the name of the device,
> which can be used by the
> +userspace for identification.
What is 'userspace' in the context of this spec? I'd write
"\field{name} contains a name identifying the device."
Are there any further requirements (e.g. may the name be empty?)
<need to look at the remainder later>
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
next prev parent reply other threads:[~2021-05-19 17:01 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-21 0:33 [virtio-dev] [PATCH] Add virtio parameter server device specification Hao Chen
2021-04-30 10:55 ` Cornelia Huck
2021-05-07 23:06 ` Hao Chen
2021-05-11 9:24 ` Cornelia Huck
2021-05-13 14:46 ` Stefan Hajnoczi
2021-05-17 19:28 ` Hao Chen
[not found] ` <20210517193030.1568902-1-chenhaosjtuacm@google.com>
2021-05-17 19:32 ` [virtio-dev] [PATCH v2] " Hao Chen
[not found] ` <20210517193617.1576401-1-chenhaosjtuacm@google.com>
2021-05-17 19:37 ` [virtio-dev] Fwd: [PATCH v3] " Hao Chen
2021-05-19 17:01 ` Cornelia Huck [this message]
2021-05-18 6:02 ` [virtio-dev] [PATCH] " Enrico Weigelt, metux IT consult
2021-05-18 21:56 ` Hao Chen
2021-06-02 13:48 ` Enrico Weigelt, metux IT consult
2021-06-02 20:09 ` Hao Chen
2021-06-04 10:50 ` Enrico Weigelt, metux IT consult
2021-06-09 20:30 ` Hao Chen
2021-06-10 16:06 ` Enrico Weigelt, metux IT consult
2021-06-10 23:15 ` Hao Chen
[not found] ` <20210610231954.2937837-1-chenhaosjtuacm@google.com>
2021-06-10 23:20 ` [virtio-dev] Re: [PATCH v4] " Hao Chen
2021-06-11 18:44 ` Hao Chen
2021-09-08 20:42 ` Hao Chen
[not found] ` <CABATKF9kqVOeR44vcTH_aw5Sx9geT0-gVpyqngcAwnkcxVN35Q@mail.gmail.com>
2021-10-04 18:30 ` Hao Chen
2021-05-24 14:37 ` [virtio-dev] [PATCH] " Stefan Hajnoczi
2021-05-24 18:45 ` Hao Chen
2021-05-25 16:56 ` Stefan Hajnoczi
2021-06-09 9:12 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210519190125.3c421a9c.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=chenhaosjtuacm@google.com \
--cc=egranata@google.com \
--cc=virtio-dev@lists.oasis-open.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox