Update VIRTIO_F_EVENT_IDX throughout
PATCH 1/1 Update VIRTIO_F_EVENT_IDX throughout
This flag has been called by many names in the past (VIRTIO_RING_F_EVENT_IDX, VIRTIO_F_RING_EVENT_IDX) and there are just a few stragglers left to clean up.
--- content.tex | 2 +- packed-ring.tex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
content.tex +1 -1
@@ -6581,7 +6581,7 @@ \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} Descriptors}~\nameref{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Descriptor Table / Indirect Descriptors} and \ref{sec:Packed Virtqueues / Indirect Flag: Scatter-Gather Support}~\nameref{sec:Packed Virtqueues / Indirect Flag: Scatter-Gather Support}. - \item[VIRTIO_F_RING_EVENT_IDX(29)] This feature enables the \field{used_event} + \item[VIRTIO_F_EVENT_IDX(29)] This feature enables the \field{used_event} and the \field{avail_event} fields as described in \ref{sec:Basic Facilities of a Virtio Device / Virtqueues / Used Buffer Notification Suppression}, \ref{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Used Ring} and \ref{sec:Packed Virtqueues / Driver and Device Event Suppression}.
packed-ring.tex +2 -2
@@ -336,7 +336,7 @@ \subsection{Driver and Device Event Suppression} /* * Enable events for a specific descriptor * (as specified by Descriptor Ring Change Event Offset/Wrap Counter). - * Only valid if VIRTIO_F_RING_EVENT_IDX has been negotiated. + * Only valid if VIRTIO_F_EVENT_IDX has been negotiated. */ #define RING_EVENT_FLAGS_DESC 0x2 /* The value 0x3 is reserved */
@@ -597,7 +597,7 @@ \subsubsection{Implementation Example}\label{sec:Basic Facilities of a Virtio De Below is a driver code example. It does not attempt to reduce the number of available buffer notifications, neither does it support -the VIRTIO_F_RING_EVENT_IDX feature. +the VIRTIO_F_EVENT_IDX feature. \begin{lstlisting} /* Note: vq->avail_wrap_count is initialized to 1 */
Signature · 18 lines
2.25.1 This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC. In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting. Subscribe: [email protected] Unsubscribe: [email protected] List help: [email protected] List archive: https://lists.oasis-open.org/archives/virtio-comment/ Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists Committee: https://www.oasis-open.org/committees/virtio/ Join OASIS: https://www.oasis-open.org/join/
Quoted 15 lines · On Thu, 29 Apr 2021 16:10:16 -0700 Joel Nider <[email protected]> wrote:
This flag has been called by many names in the past (
VIRTIO_RING_F_EVENT_IDX,VIRTIO_F_RING_EVENT_IDX) and there are just a few stragglers left to clean up.Signed-off-by Joel Nider <[email protected]>--- content.tex | 2 +- packed-ring.tex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)content.tex +0
-0
content.tex \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} · line 6584
Quoted 5 lines
content.tex +1
-1@@ -6581,7 +6581,7 @@ \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} Descriptors}~\nameref{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Descriptor Table / Indirect Descriptors} and \ref{sec:Packed Virtqueues / Indirect Flag: Scatter-Gather Support}~\nameref{sec:Packed Virtqueues / Indirect Flag: Scatter-Gather Support}. - \item[VIRTIO_F_RING_EVENT_IDX(29)] This feature enables the \field{used_event} + \item[VIRTIO_F_EVENT_IDX(29)] This feature enables the \field{used_event}
Hm. The VIRTIO_F_RING_ version actually matches well with VIRTIO_F_RING_INDIRECT_DESC and VIRTIO_F_RING_PACKED. While the latter is used consistently throughout the spec, we seem to use VIRTIO_F_INDIRECT_DESC in other places. For added variety, Linux and QEMU use VIRTIO_RING_F_INDIRECT_DESC and VIRTIO_RING_F_EVENT_IDX (but VIRTIO_F_RING_PACKED.)
We should be consistent within the spec, so I'd vote for using the VIRTIO_F_RING_ versions everywhere here. (The Linux/QEMU variants are still easily recognizable, so there's actually not much potential for confusion.) The only downside is that this would mean more changes.
Opinions?
Quoted 17 lines
content.tex +0
-0and the \field{avail_event} fields as described in \ref{sec:Basic Facilities of a Virtio Device / Virtqueues / Used Buffer Notification Suppression}, \ref{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Used Ring} and \ref{sec:Packed Virtqueues / Driver and Device Event Suppression}.packed-ring.tex +1
-1@@ -336,7 +336,7 @@ \subsection{Driver and Device Event Suppression} /* * Enable events for a specific descriptor * (as specified by Descriptor Ring Change Event Offset/Wrap Counter). - * Only valid if VIRTIO_F_RING_EVENT_IDX has been negotiated. + * Only valid if VIRTIO_F_EVENT_IDX has been negotiated. */ #define RING_EVENT_FLAGS_DESC 0x2 /* The value 0x3 is reserved */
packed-ring.tex \subsubsection{Implementation Example}\label{sec:Basic Facilities of a Virtio De · line 603
Quoted 8 lines
packed-ring.tex +1
-1@@ -597,7 +597,7 @@ \subsubsection{Implementation Example}\label{sec:Basic Facilities of a Virtio De Below is a driver code example. It does not attempt to reduce the number of available buffer notifications, neither does it support -the VIRTIO_F_RING_EVENT_IDX feature. +the VIRTIO_F_EVENT_IDX feature. \begin{lstlisting} /* Note: vq->avail_wrap_count is initialized to 1 */
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
Quoted 13 lines · Cornelia Huck
Quoted 10 lines · On Thu, 29 Apr 2021 16:10:16 -0700 Joel Nider <[email protected]> wrote:
This flag has been called by many names in the past (
VIRTIO_RING_F_EVENT_IDX,VIRTIO_F_RING_EVENT_IDX) and there are just a few stragglers left to clean up.Signed-off-by Joel Nider <[email protected]>--- content.tex | 2 +- packed-ring.tex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
Quoted 16 lines
content.tex \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} · line 6584
Quoted 10 lines
content.tex +1
-1@@ -6581,7 +6581,7 @@ \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} Descriptors}~\nameref{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Descriptor Table / Indirect Descriptors} and \ref{sec:Packed Virtqueues / Indirect Flag: Scatter-Gather Support}~\nameref{sec:Packed Virtqueues / Indirect Flag: Scatter-Gather Support}. - \item[VIRTIO_F_RING_EVENT_IDX(29)] This feature enables the \field{used_event} + \item[VIRTIO_F_EVENT_IDX(29)] This feature enables the \field{used_event}Hm. The
VIRTIO_F_RING_version actually matches well withVIRTIO_F_RING_INDIRECT_DESCandVIRTIO_F_RING_PACKED. While the latter is used consistently throughout the spec, we seem to useVIRTIO_F_INDIRECT_DESCin other places. For added variety, Linux and QEMU useVIRTIO_RING_F_INDIRECT_DESCandVIRTIO_RING_F_EVENT_IDX(butVIRTIO_F_RING_PACKED.)
Clearly all of these flags apply to the v-rings - I don't think including 'RING' to makes it any clearer. So in the interest of readability, I would opt for the shorter flag names (more likely to fit in a 80-char line). Linux (and the other OSes and hypervisors) will eventually fall in line, once the spec is consistent.
Quoted 4 lines
We should be consistent within the spec, so I'd vote for using the
VIRTIO_F_RING_versions everywhere here. (The Linux/QEMU variants are still easily recognizable, so there's actually not much potential for confusion.) The only downside is that this would mean more changes.
I fully support being consistent everywhere in the spec - that is my primary concern. I noticed that over time, the flag name seems to be gravitating towards the VIRTIO_F_EVENT_IDX (all places in section 2 already use this name), so that's why I just changed the last two places that are not consistent. Truly, I will be happy once they are all the same (one way or the other).
Quoted 20 lines
Opinions?
Quoted 18 lines
content.tex +0
-0and the \field{avail_event} fields as described in \ref{sec:Basic Facilities of a Virtio Device / Virtqueues / Used Buffer Notification Suppression}, \ref{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Used Ring} and \ref{sec:Packed Virtqueues / Driver and Device Event Suppression}.packed-ring.tex +1
-1@@ -336,7 +336,7 @@ \subsection{Driver and Device Event Suppression} /* * Enable events for a specific descriptor * (as specified by Descriptor Ring Change Event Offset/Wrap Counter). - * Only valid if VIRTIO_F_RING_EVENT_IDX has been negotiated. + * Only valid if VIRTIO_F_EVENT_IDX has been negotiated. */ #define RING_EVENT_FLAGS_DESC 0x2 /* The value 0x3 is reserved */@@ -597,7 +597,7 @@ \subsubsection{Implementation Example}\label{sec:Basic Facilities of a Virtio De
Quoted 7 lines
packed-ring.tex \subsubsection{Implementation Example}\label{sec:Basic Facilities of a Virtio De · line 603
Quoted 7 lines
packed-ring.tex +1
-1Below is a driver code example. It does not attempt to reduce the number of available buffer notifications, neither does it support -the VIRTIO_F_RING_EVENT_IDX feature. +the VIRTIO_F_EVENT_IDX feature. \begin{lstlisting} /* Note: vq->avail_wrap_count is initialized to 1 */
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
Quoted 12 lines · On Fri, 30 Apr 2021 09:27:55 -0700 Joel Nider <[email protected]> wrote:
Quoted 11 lines · Cornelia Huck
content.tex \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} · line 6584
Quoted 2 lines · On Thu, 29 Apr 2021 16:10:16 -0700 Joel Nider <[email protected]> wrote:
content.tex +1
-1- \item[VIRTIO_F_RING_EVENT_IDX(29)] This feature enables the \field{used_event} + \item[VIRTIO_F_EVENT_IDX(29)] This feature enables the \field{used_event}Hm. The
VIRTIO_F_RING_version actually matches well withVIRTIO_F_RING_INDIRECT_DESCandVIRTIO_F_RING_PACKED. While the latter is used consistently throughout the spec, we seem to useVIRTIO_F_INDIRECT_DESCin other places. For added variety, Linux and QEMU useVIRTIO_RING_F_INDIRECT_DESCandVIRTIO_RING_F_EVENT_IDX(butVIRTIO_F_RING_PACKED.)
Quoted 5 lines
Clearly all of these flags apply to the v-rings - I don't think including 'RING' to makes it any clearer. So in the interest of readability, I would opt for the shorter flag names (more likely to fit in a 80-char line). Linux (and the other OSes and hypervisors) will eventually fall in line, once the spec is consistent.
Not so sure about implementations changing their terms, but I don't think it's of much consequence.
Quoted 10 lines
Quoted 4 lines
We should be consistent within the spec, so I'd vote for using the
VIRTIO_F_RING_versions everywhere here. (The Linux/QEMU variants are still easily recognizable, so there's actually not much potential for confusion.) The only downside is that this would mean more changes.I fully support being consistent everywhere in the spec - that is my primary concern. I noticed that over time, the flag name seems to be gravitating towards the
VIRTIO_F_EVENT_IDX(all places in section 2 already use this name), so that's why I just changed the last two places that are not consistent. Truly, I will be happy once they are all the same (one way or the other).
I have no strong preference for keeping the 'RING' particle, the main issue is consistency. In any case, we should also clean up INDIRECT_DESC.
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/