From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Nikos Dragazis <ndragazis@arrikto.com>
Cc: virtio-dev@lists.oasis-open.org,
Stefan Hajnoczi <stefanha@gmail.com>,
Vangelis Koukis <vkoukis@arrikto.com>
Subject: [virtio-dev] Re: [PATCH v3 4/4] vhost-user: update shared memory capability
Date: Fri, 31 May 2019 17:59:18 +0100 [thread overview]
Message-ID: <20190531165918.GL3169@work-vm> (raw)
In-Reply-To: <1557600460-18966-5-git-send-email-ndragazis@arrikto.com>
* Nikos Dragazis (ndragazis@arrikto.com) wrote:
> The virtio vhost-user device has shared memory resources. Therefore, it
> uses the VIRTIO_PCI_CAP_SHARED_MEMORY_CFG capability to standardize
> those resources through the PCI Configuration Space. This patch
> synchronizes the virtio vhost-user device spec with the following shared
> memory resources PATCH:
>
> https://lists.oasis-open.org/archives/virtio-dev/201902/msg00142.html
>
> Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
> Signed-off-by: Nikos Dragazis <ndragazis@arrikto.com>
> ---
> virtio-vhost-user.tex | 17 ++++++++++++++++-
> 1 file changed, 16 insertions(+), 1 deletion(-)
>
> diff --git a/virtio-vhost-user.tex b/virtio-vhost-user.tex
> index 7a8cd9c..d1305dd 100644
> --- a/virtio-vhost-user.tex
> +++ b/virtio-vhost-user.tex
> @@ -320,7 +320,22 @@ \subsubsection{Notification structure layout}\label{sec:Device Types / Vhost-use
> \subsubsection{Shared memory capability}\label{sec:Device Types / Vhost-user Device Backend / Additional Device Resources over PCI / Shared Memory capability}
>
> The shared memory location is found using the VIRTIO_PCI_CAP_SHARED_MEMORY_CFG
> -capability.
> +capability. Using the additional \field{offset_hi} and \field{length_hi}
> +fields following the SHARED_MEMORY_CFG capability structure, the shared
> +memory region's 64-bit BAR offset is calculated as follows:
> +
> +\begin{lstlisting}
> + offset_hi << 32 + cap.offset
> +\end{lstlisting}
> +
> +and the shared memory region's 64-bit length is calculated as follows:
> +
> +\begin{lstlisting}
> + length_hi << 32 + cap.length
> +\end{lstlisting}
> +
> +The \field{cap.offset} and \field{cap.length} fields are taken from the
> +SHARED_MEMORY_CFG capability structure.
Yes, or this could just reference the:
{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI Device Layout / Shared memory capability}
section once it's merged.
Do you actually need to specify that it's found by PCI though?
Could you just define it as using Shared Memory Regions,
reference {sec:Basic Facilities of a Virtio Device / Shared Memory Regions}
and then it would be defined to work with PCI, MMIO or CCW if they
define the shared memory region support.
Dave
> \devicenormative{\paragraph}{Shared Memory capability}{Device Types / Vhost-user Device Backend / Additional Device Resources over PCI / Shared Memory capability}
> The device MUST present exactly one shared memory capability.
> --
> 2.7.4
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
---------------------------------------------------------------------
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:[~2019-05-31 16:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-11 18:47 [virtio-dev] [PATCH v3 0/4] introduce virtio vhost-user backend device type Nikos Dragazis
2019-05-11 18:47 ` [virtio-dev] [PATCH v3 1/4] vhost-user: add vhost-user " Nikos Dragazis
2019-05-11 18:47 ` [virtio-dev] [PATCH v3 2/4] vhost-user: minor fixes Nikos Dragazis
2019-05-11 18:47 ` [virtio-dev] [PATCH v3 3/4] vhost-user: add requirements for the notification capability Nikos Dragazis
2019-05-11 18:47 ` [virtio-dev] [PATCH v3 4/4] vhost-user: update shared memory capability Nikos Dragazis
2019-05-31 16:59 ` Dr. David Alan Gilbert [this message]
2019-06-07 12:05 ` [virtio-dev] " Nikos Dragazis
2019-05-20 22:03 ` [virtio-dev] [PATCH v3 0/4] introduce virtio vhost-user backend device type Nikos Dragazis
2019-06-19 14:54 ` Stefan Hajnoczi
2019-06-21 20:43 ` Michael S. Tsirkin
2019-06-24 15:32 ` Nikos Dragazis
2019-07-31 14:49 ` Nikos Dragazis
2019-07-31 20:19 ` Michael S. Tsirkin
2019-08-04 22:32 ` Nikos Dragazis
2019-08-05 5:22 ` Michael S. Tsirkin
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=20190531165918.GL3169@work-vm \
--to=dgilbert@redhat.com \
--cc=ndragazis@arrikto.com \
--cc=stefanha@gmail.com \
--cc=virtio-dev@lists.oasis-open.org \
--cc=vkoukis@arrikto.com \
/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