rework notifications terminology
v2 cover rework notifications terminology
Abstract
--------
The terminology around notifications is currently somewhat fragmented. Unify notifications terminology using available and used buffer notification consistently for the virtqueue notifications. Consistent use of the term configuration change notification is of concern.
Changelog:
---------
v1 -> v2:
* Addressed Stefan's comments (mostly typos, grammar and inconsistencies). Thanks Stefan!
* Rebased onto the current master.
RFC --> v1:
* Devices and the transports PCI and MMIO were omitted. Now the rework should be complete.
* Addressed review comments and minor changes for the first three patches.
Sorry it took so long to respin.
Halil Pasic (6):
notifications: unify notifications wording in core
notifications: notifications as basic virtio facility
ccw: map common notifications terminology to ccw
pci: map common notifications terminology to PCI
mmio: map common notifications terminology to MMIO
notifications: update notifications terminology for devices
cl-os.tex | 2 +- conformance.tex | 10 ++-- content.tex | 165 +++++++++++++++++++++++++++++++++++++++++------------- packed-ring.tex | 61 +++++++++++--------- split-ring.tex | 72 ++++++++++++++---------- 5 files changed, 207 insertions(+), 103 deletions(-)
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
PATCH v2 1/6 notifications: unify notifications wording in core
Let us unify the wording when talking about notifications. This change establishes the terms available buffer notification for what was usually simply called notification or virtqueue notification in v1.0 and used buffer notification for what was usually called interrupt.
The term configuration change notification in kept where called so and consolidated where it's called configuration change interrupt or similar.
The changes done here are limited to the core part, and don't conceptually involve neither the transports nor the devices (references are updated though). Future changes should address these parts.
--- cl-os.tex | 2 +- conformance.tex | 8 +++--- content.tex | 26 +++++++++++-------- packed-ring.tex | 61 ++++++++++++++++++++++++++-------------------- split-ring.tex | 72 ++++++++++++++++++++++++++++++++----------------------- 5 files changed, 96 insertions(+), 73 deletions(-)
cl-os.tex +1 -1
@@ -2,7 +2,7 @@ trivial typo See -\ref{sec:Basic Facilities of a Virtio Device / Virtqueues / Virtqueue Interrupt Suppression}. +\ref{sec:Basic Facilities of a Virtio Device / Virtqueues / Used Buffer Notification Suppression}. } \\ \hline 541 & 11 Oct 2015 & Paolo Bonzini & {virtio-blk: fix typo
conformance.tex +4 -4
@@ -37,10 +37,10 @@ A driver MUST conform to the following normative statements: \item \ref{drivernormative:Basic Facilities of a Virtio Device / Message Framing} \item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Descriptor Table} \item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Descriptor Table / Indirect Descriptors} -\item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / Virtqueue Interrupt Suppression} +\item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / Used Buffer Notification Suppression} \item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Available Ring} \item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Used Ring} -\item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / Virtqueue Notification Suppression} +\item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / Available Buffer Notification Suppression} \item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / Supplying Buffers to The Device / Updating idx} \item \ref{drivernormative:Basic Facilities of a Virtio Device / Virtqueues / Supplying Buffers to The Device / Notifying The Device} \item \ref{drivernormative:General Initialization And Device Operation / Device Initialization}
@@ -158,9 +158,9 @@ A device MUST conform to the following normative statements: \item \ref{devicenormative:Basic Facilities of a Virtio Device / Message Framing} \item \ref{devicenormative:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Descriptor Table} \item \ref{devicenormative:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Descriptor Table / Indirect Descriptors} -\item \ref{devicenormative:Basic Facilities of a Virtio Device / Virtqueues / Virtqueue Interrupt Suppression} +\item \ref{devicenormative:Basic Facilities of a Virtio Device / Virtqueues / Used Buffer Notification Suppression} \item \ref{devicenormative:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Used Ring} -\item \ref{devicenormative:Basic Facilities of a Virtio Device / Virtqueues / Virtqueue Notification Suppression} +\item \ref{devicenormative:Basic Facilities of a Virtio Device / Virtqueues / Available Buffer Notification Suppression} \item \ref{devicenormative:Reserved Feature Bits} \end{itemize}
content.tex +15 -11
@@ -72,7 +72,8 @@ recover by issuing a reset. \devicenormative{\subsection}{Device Status Field}{Basic Facilities of a Virtio Device / Device Status Field} The device MUST initialize \field{device status} to 0 upon reset. -The device MUST NOT consume buffers or notify the driver before DRIVER_OK. +The device MUST NOT consume buffers or send any used buffer +notifications to the driver before DRIVER_OK. \label{sec:Basic Facilities of a Virtio Device / Device Status Field / DEVICENEEDSRESET}The device SHOULD set DEVICE_NEEDS_RESET when it enters an error state that a reset is needed. If DRIVER_OK is set, after it sets DEVICE_NEEDS_RESET, the device
@@ -235,12 +236,13 @@ transmit and one for receive.}. Driver makes requests available to device by adding an available buffer to the queue - i.e. adding a buffer describing the request to a virtqueue, and optionally triggering -a driver event - i.e. sending a notification to the device. +a driver event - i.e. sending an available buffer notification +to the device. Device executes the requests and - when complete - adds a used buffer to the queue - i.e. lets the driver know by marking the buffer as used. Device can then trigger -a device event - i.e. send an interrupt to the driver. +a device event - i.e. send a used buffer notification to the driver. Device reports the number of bytes it has written to memory for each buffer it uses. This is referred to as ``used length''.
@@ -330,7 +332,8 @@ set the FAILED status bit to indicate that it has given up on the device (it can reset the device later to restart if desired). The driver MUST NOT continue initialization in that case. -The driver MUST NOT notify the device before setting DRIVER_OK. +The driver MUST NOT send any buffer available notifications to +the device before setting DRIVER_OK. \subsection{Legacy Interface: Device Initialization}\label{sec:General Initialization And Device Operation / Device Initialization / Legacy Interface: Device Initialization} Legacy devices did not support the FEATURES_OK status bit, and thus did
@@ -388,10 +391,11 @@ reads unless notified. \subsection{Notification of Device Configuration Changes}\label{sec:General Initialization And Device Operation / Device Operation / Notification of Device Configuration Changes} -For devices where the device-specific configuration information can be changed, an -interrupt is delivered when a device-specific configuration change occurs. +For devices where the device-specific configuration information can be +changed, a configuration change notification is delivered when a +device-specific configuration change occurs. -In addition, this interrupt is triggered by the device setting +In addition, this notification is triggered by the device setting DEVICE_NEEDS_RESET (see \ref{sec:Basic Facilities of a Virtio Device / Device Status Field / DEVICENEEDSRESET}). \section{Device Cleanup}\label{sec:General Initialization And Device Operation / Device Cleanup}
@@ -5339,7 +5343,7 @@ 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} and the \field{avail_event} fields as described in -\ref{sec:Basic Facilities of a Virtio Device / Virtqueues / Virtqueue Interrupt Suppression}, \ref{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Used Ring} and \ref{sec:Packed Virtqueues / Driver and Device Event Suppression}. +\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}. \item[VIRTIO_F_VERSION_1(32)] This indicates compliance with this
@@ -5413,16 +5417,16 @@ Transitional devices MAY offer the following: \begin{description} \item[VIRTIO_F_NOTIFY_ON_EMPTY (24)] If this feature has been negotiated by driver, the device MUST issue - an interrupt if the device runs + a used buffer notification if the device runs out of available descriptors on a virtqueue, even though - interrupts are suppressed using the VIRTQ_AVAIL_F_NO_INTERRUPT + notifications are suppressed using the VIRTQ_AVAIL_F_NO_INTERRUPT flag or the \field{used_event} field. \begin{note} An example of a driver using this feature is the legacy networking driver: it doesn't need to know every time a packet is transmitted, but it does need to free the transmitted packets a finite time after they are transmitted. It can avoid - using a timer if the device interrupts it when all the packets + using a timer if the device notifies it when all the packets are transmitted. \end{note} \end{description}
packed-ring.tex +34 -27
135 lines not on this page · raw message
split-ring.tex +42 -30
162 lines not on this page · raw message
Signature · 7 lines
1.7.1 --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
PATCH v2 2/6 notifications: notifications as basic virtio facility
In reply to Halil PasicLet's introduce notifications as basic virtio facility early on. This shall not only increase the cohesion between core and transport description by having a well-defined place where notifications are introduced, but also give us the opportunity to explain some discrepancies.
Namely notifications sent by the device to the driver were often called interrupts prior to v1.1. Getting completely rid of that terminology is however not viable in case of some names.
--- content.tex | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-)
content.tex +36 -0
@@ -8,6 +8,7 @@ device consists of the following parts: \begin{itemize} \item Device status field \item Feature bits +\item Notifications \item Device Configuration space \item One or more virtqueues \end{itemize}
@@ -150,6 +151,41 @@ requirements documented within these legacy interface sections. Specification text within these sections generally does not apply to non-transitional devices. +\section{Notifications}\label{sec:Basic Facilities of a Virtio Device +/ Notifications} + +The notion of sending a notification (driver to device or device +to driver) plays an important role in this specification. The +modus operandi of the notifications is transport specific. + +There are three types of notifications: +\begin{itemize} +\item device configuration space notification +\item available buffer notification +\item used buffer notification. +\end{itemize} + +Device configuration space notifications and used buffer notifications +are sent by the device, the recipient is the driver. A device +configuration space notification indicates that a configuration space +has changed; a used buffer notification indicates that a buffer may +have been made used on the virtqueue designated by the notification. + +Available buffer notifications are sent by the driver, the recipient is +the device. This type of notification indicates that a buffer may have +been made available on the virtqueue designated by the notification. + +The semantic, the transport-specific implementations and other +important aspects of the different notifications are specified in detail +in the following chapters. + +Most transports implement notifications sent by the device to the +driver using interrupts. Therefore, in previous versions of this +specification, these notifications were often called interrupts. +Some names defined in this specification still retain this interrupt +terminology. Occasionally, the term event is used to refer to +a notification or a receipt of a notification. + \section{Device Configuration Space}\label{sec:Basic Facilities of a Virtio Device / Device Configuration Space} Device configuration space is generally used for rarely-changing or
Signature · 7 lines
1.7.1 --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
PATCH v2 3/6 ccw: map common notifications terminology to ccw
In reply to Halil PasicThe various notifications are introduced and specified in the common (i.e. transport agnostic) portion of this specification. How notifications are realised for a given transport is something each transport has to specify.
Let's make the relationship between the virtio-ccw terms and the common terms more obvious.
--- content.tex | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-)
content.tex +42 -0
@@ -1943,6 +1943,18 @@ Bytes & Description & Contents \\ \hline \end{tabular} +A virtio-ccw proxy device facilitates: +\begin{itemize} +\item Discovery and attachment of virtio devices (as described above). +\item Initialization of virtqueues and transport-specific facilities (using + virtio-specific channel commands). +\item Notifications (via hypercall and a combination of I/O interrupts + and indicator bits). +\end{itemize} + +\subsubsection{Channel Commands for Virtio}\label{sec:Virtio Transport Options / Virtio +over channel I/O / Basic Concepts/ Channel Commands for Virtio} + In addition to the basic channel commands, virtio-ccw defines a set of channel commands related to configuration and operation of virtio:
@@ -1963,6 +1975,36 @@ virtio: #define CCW_CMD_READ_STATUS 0x72 \end{lstlisting} +\subsubsection{Notifications}\label{sec:Virtio Transport Options / Virtio +over channel I/O / Basic Concepts/ Notifications} + +Available buffer notifications are realized as a hypercall. No additional +setup by the driver is needed. The operation of available buffer +notifications is described in section \ref{sec:Virtio Transport Options / +Virtio over channel I/O / Device Operation / Guest->Host Notification}. + +Used buffer notifications are realized either as so-called classic or +adapter I/O interrupts depending on a transport level negotiation. The +initialization is described in sections \ref{sec:Virtio Transport Options +/ Virtio over channel I/O / Device Initialization / Setting Up Indicators +/ Setting Up Classic Queue Indicators} and \ref{sec:Virtio Transport +Options / Virtio over channel I/O / Device Initialization / Setting Up +Indicators / Setting Up Two-Stage Queue Indicators} respectively. The +operation of each flavor is described in sections \ref{sec:Virtio +Transport Options / Virtio over channel I/O / Device Operation / +Host->Guest Notification / Notification via Classic I/O Interrupts} and +\ref{sec:Virtio Transport Options / Virtio over channel I/O / Device +Operation / Host->Guest Notification / Notification via Adapter I/O +Interrupts} respectively. + +Configuration change notifications are done using so-called classic I/O +interrupts. The initialization is described in section \ref{sec:Virtio +Transport Options / Virtio over channel I/O / Device Initialization / +Setting Up Indicators / Setting Up Configuration Change Indicators} and +the operation in section \ref{sec:Virtio Transport Options / Virtio over +channel I/O / Device Operation / Host->Guest Notification / Notification +via Classic I/O Interrupts}. + \devicenormative{\subsubsection}{Basic Concepts}{Virtio Transport Options / Virtio over channel I/O / Basic Concepts} The virtio-ccw device acts like a normal channel device, as specified
Signature · 7 lines
1.7.1 --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
PATCH v2 4/6 pci: map common notifications terminology to PCI
In reply to Halil PasicThe various notifications are introduced and specified in the common (i.e. transport agnostic) portion of this specification. How notifications are realised for a given transport is something each transport has to specify.
Let's make the relationship between the PCI terms and the common terms more obvious.
--- conformance.tex | 2 +- content.tex | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-)
conformance.tex +1 -1
@@ -180,7 +180,7 @@ A PCI device MUST conform to the following normative statements: \item \ref{devicenormative:Virtio Transport Options / Virtio Over PCI Bus / PCI Device Layout / PCI configuration access capability} \item \ref{devicenormative:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Device Initialization / Non-transitional Device With Legacy Driver} \item \ref{devicenormative:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Device Initialization / MSI-X Vector Configuration} -\item \ref{devicenormative:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Virtqueue Interrupts From The Device} +\item \ref{devicenormative:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Used Buffer Notifications} \item \ref{devicenormative:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Notification of Device Configuration Changes} \end{itemize}
content.tex +7 -6
@@ -941,7 +941,7 @@ causes the device to de-assert the interrupt. In this way, driver read of ISR status causes the device to de-assert an interrupt. -See sections \ref{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Virtqueue Interrupts From The Device} and \ref{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Notification of Device Configuration Changes} for how this is used. +See sections \ref{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Used Buffer Notifications} and \ref{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Notification of Device Configuration Changes} for how this is used. \devicenormative{\paragraph}{ISR status capability}{Virtio Transport Options / Virtio Over PCI Bus / PCI Device Layout / ISR status capability}
@@ -1306,14 +1306,15 @@ enough to ensure that the separate parts of the virtqueue are on separate cache lines. }. There was no mechanism to negotiate the queue size. -\subsubsection{Notifying The Device}\label{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Notifying The Device} +\subsubsection{Available Buffer Notifications}\label{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Available Buffer Notifications} -The driver notifies the device by writing the 16-bit virtqueue index +The driver sends an available buffer notification to the device by writing +the 16-bit virtqueue index of this virtqueue to the Queue Notify address. See \ref{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI Device Layout / Notification capability} for how to calculate this address. -\subsubsection{Virtqueue Interrupts From The Device}\label{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Virtqueue Interrupts From The Device} +\subsubsection{Used Buffer Notifications}\label{sec:Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Used Buffer Notifications} -If an interrupt is necessary for a virtqueue, the device would typically act as follows: +If a used buffer notification is necessary for a virtqueue, the device would typically act as follows: \begin{itemize} \item If MSI-X capability is disabled:
@@ -1332,7 +1333,7 @@ If an interrupt is necessary for a virtqueue, the device would typically act as \end{enumerate} \end{itemize} -\devicenormative{\paragraph}{Virtqueue Interrupts From The Device}{Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Virtqueue Interrupts From The Device} +\devicenormative{\paragraph}{Used Buffer Notifications}{Virtio Transport Options / Virtio Over PCI Bus / PCI-specific Initialization And Device Operation / Used Buffer Notifications} If MSI-X capability is enabled and \field{queue_msix_vector} is NO_VECTOR for a virtqueue, the device MUST NOT deliver an interrupt
Signature · 7 lines
1.7.1 --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
PATCH v2 5/6 mmio: map common notifications terminology to MMIO
In reply to Halil PasicThe various notifications are introduced and specified in the common (i.e. transport agnostic) portion of this specification. How notifications are realised for a given transport is something each transport has to specify.
Let's make the relationship between the virtio over MIIO terms and the common terms more obvious.
--- content.tex | 26 ++++++++++++++------------ 1 files changed, 14 insertions(+), 12 deletions(-)
content.tex +14 -12
@@ -1550,10 +1550,10 @@ All register values are organized as Little Endian. caused the device interrupt to be asserted. The following events are possible: \begin{description} - \item[Used Buffer Update] - bit 0 - the interrupt was asserted + \item[Used Buffer Notification] - bit 0 - the interrupt was asserted because the device has used a buffer in at least one of the active virtual queues. - \item [Configuration Change] - bit 1 - the interrupt was + \item [Configuration Change Notification] - bit 1 - the interrupt was asserted because the configuration of the device has changed. \end{description} }
@@ -1716,26 +1716,28 @@ The driver will typically initialize the virtual queue in the following way: \item Write 0x1 to \field{QueueReady}. \end{enumerate} -\subsubsection{Notifying The Device}\label{sec:Virtio Transport Options / Virtio Over MMIO / MMIO-specific Initialization And Device Operation / Notifying The Device} +\subsubsection{Available Buffer Notifications}\label{sec:Virtio Transport Options / Virtio Over MMIO / MMIO-specific Initialization And Device Operation / Available Buffer Notifications} -The driver notifies the device about new buffers being available in -a queue by writing the index of the updated queue to \field{QueueNotify}. +The driver sends an available buffer notification to the device by +writing the index of the queue to \field{QueueNotify} to be notified. \subsubsection{Notifications From The Device}\label{sec:Virtio Transport Options / Virtio Over MMIO / MMIO-specific Initialization And Device Operation / Notifications From The Device} The memory mapped virtio device is using a single, dedicated interrupt signal, which is asserted when at least one of the bits described in the description of \field{InterruptStatus} -is set. This is how the device notifies the -driver about a new used buffer being available in the queue -or about a change in the device configuration. +is set. This is how the device sends a used buffer notification +or a configuration change notification to the device. \drivernormative{\paragraph}{Notifications From The Device}{Virtio Transport Options / Virtio Over MMIO / MMIO-specific Initialization And Device Operation / Notifications From The Device} After receiving an interrupt, the driver MUST read -\field{InterruptStatus} to check what caused the interrupt -(see the register description). After the interrupt is handled, -the driver MUST acknowledge it by writing a bit mask -corresponding to the handled events to the InterruptACK register. + +\field{InterruptStatus} to check what caused the interrupt (see the +register description). The used buffer notification bit being set +SHOULD be interpreted as a used buffer notification for each active +virtqueue. After the interrupt is handled, the driver MUST acknowledge +it by writing a bit mask corresponding to the handled events to the +InterruptACK register. \subsection{Legacy interface}\label{sec:Virtio Transport Options / Virtio Over MMIO / Legacy interface}
Signature · 7 lines
1.7.1 --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
PATCH v2 6/6 notifications: update notifications terminology for devices
In reply to Halil PasicThe specifications of some virtio device types are still using the old terminology for used buffer notifications and configuration change notifications calling these interrupts.
Let us fix that.
--- content.tex | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-)
content.tex +11 -11
@@ -3044,9 +3044,9 @@ if VIRTIO_NET_F_MRG_RXBUF is not negotiated.} \label{sec:Device Types / Network Device / Device Operation / Processing of Packets}%old label for latexdiff When a packet is copied into a buffer in the receiveq, the -optimal path is to disable further interrupts for the receiveq -and process -packets until no more are found, then re-enable them. +optimal path is to disable further used buffer notifications for the +receiveq and process packets until no more are found, then re-enable +them. Processing incoming packets involves:
@@ -3886,7 +3886,7 @@ The device SHOULD clear the \field{write_zeroes_may_unmap} field of the virtio configuration space if and only if a write zeroes request cannot result in deallocating one or more sectors. The device MAY change the content of the field during operation of the device; when this happens, -the device SHOULD trigger a configuration change interrupt. +the device SHOULD trigger a configuration change notification. A write is considered volatile when it is submitted; the contents of sectors covered by a volatile write are undefined in persistent device
@@ -4178,20 +4178,20 @@ an appropriate log or output method. \begin{enumerate} \item For output, a buffer containing the characters is placed in the port's transmitq\footnote{Because this is high importance and low bandwidth, the current -Linux implementation polls for the buffer to be used, rather than -waiting for an interrupt, simplifying the implementation +Linux implementation polls for the buffer to become used, rather than +waiting for a used buffer notification, simplifying the implementation significantly. However, for generic serial ports with the O_NONBLOCK flag set, the polling limitation is relaxed and the consumed buffers are freed upon the next write or poll call or when a port is closed or hot-unplugged. }. -\item When a buffer is used in the receiveq (signalled by an - interrupt), the contents is the input to the port associated +\item When a buffer is used in the receiveq (signalled by a + used buffer notification), the contents is the input to the port associated with the virtqueue for which the notification was received. \item If the driver negotiated the VIRTIO_CONSOLE_F_SIZE feature, a - configuration change interrupt indicates that the updated size can + configuration change notification indicates that the updated size can be read from the configuration fields. This size applies to port 0 only. \item If the driver negotiated the VIRTIO_CONSOLE_F_MULTIPORT
@@ -4434,7 +4434,7 @@ The device initialization process is outlined below: \subsection{Device Operation}\label{sec:Device Types / Memory Balloon Device / Device Operation} The device is driven either by the receipt of a configuration -change interrupt, or by changing guest memory needs, such as +change notification, or by changing guest memory needs, such as performing memory compaction or responding to out of memory conditions.
@@ -4571,7 +4571,7 @@ and notifies the device. A request for memory statistics proceeds as follows: \begin{enumerate} -\item The device uses the buffer and sends an interrupt. +\item The device uses the buffer and sends a used buffer notification. \item The driver pops the used buffer and discards it.
Signature · 7 lines
1.7.1 --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[virtio] Re: [PATCH v2 1/6] notifications: unify notifications wording in core
In reply to Halil PasicQuoted 27 lines · On Mon, 11 Jun 2018 18:11:53 +0200 Halil Pasic <[email protected]> wrote:
Let us unify the wording when talking about notifications. This change establishes the terms available buffer notification for what was usually simply called notification or virtqueue notification in v1.0 and used buffer notification for what was usually called interrupt.
The term configuration change notification in kept where called so and consolidated where it's called configuration change interrupt or similar.
The changes done here are limited to the core part, and don't conceptually involve neither the transports nor the devices (references are updated though). Future changes should address these parts.
Signed-off-by Halil Pasic <[email protected]>--- cl-os.tex | 2 +- conformance.tex | 8 +++--- content.tex | 26 +++++++++++-------- packed-ring.tex | 61 ++++++++++++++++++++++++++-------------------- split-ring.tex | 72 ++++++++++++++++++++++++++++++++----------------------- 5 files changed, 96 insertions(+), 73 deletions(-)content.tex +0
-0
(...)
content.tex reads unless notified. · line 395
Quoted 8 lines
content.tex +2
-2@@ -388,10 +391,11 @@ reads unless notified. \subsection{Notification of Device Configuration Changes}\label{sec:General Initialization And Device Operation / Device Operation / Notification of Device Configuration Changes} -For devices where the device-specific configuration information can be changed, an -interrupt is delivered when a device-specific configuration change occurs. +For devices where the device-specific configuration information can be +changed, a configuration change notification is delivered when a
Perhaps better "is sent", to keep in line with the used/available buffer notifications?
Quoted 7 lines
content.tex +2
-1+device-specific configuration change occurs. -In addition, this interrupt is triggered by the device setting +In addition, this notification is triggered by the device setting DEVICE_NEEDS_RESET (see \ref{sec:Basic Facilities of a Virtio Device / Device Status Field / DEVICENEEDSRESET}). \section{Device Cleanup}\label{sec:General Initialization And Device Operation / Device Cleanup}
(...)
Quoted 5 lines
content.tex +0
-1@@ -309,22 +310,20 @@ in the ring. \subsection{Driver and Device Event Suppression} \label{sec:Packed Virtqueues / Driver and Device Event Suppression} -In many systems driver and device notifications involve
content.tex in the ring. · line 320
Quoted 10 lines
content.tex +3
-2+In many systems used and available buffer notifications involve significant overhead. To mitigate this overhead, each virtqueue includes two identical structures used for controlling notifications between the device and the driver. The Driver Event Suppression structure is read-only by the -device and controls the events sent by the device -to the driver (e.g. interrupts). +device and controls the used buffer notifications (sent by the device +to the driver).
Drop the brackets?
content.tex in the ring. · line 323
Quoted 6 lines
content.tex +2
-2The Device Event Suppression structure is read-only by -the driver and controls the events sent by the driver -to the device (e.g. IO). +the driver and controls the available buffer notifications (sent by the +driver to the device).
Here as well.
content.tex in the ring. · line 324
Quoted 5 lines
content.tex +1
-3-Each of these Event Suppression structures controls -both Descriptor Ring events and structure events, and -each includes the following fields: +Each of these Event Suppression includes the following fields:
"Event Suppression" what? Keep "structures"?
content.tex matches this value and a descriptor is · line 354
Quoted 9 lines
content.tex +1
-1\begin{description} \item [Descriptor Ring Change Event Flags] Takes values:@@ -352,9 +351,9 @@ matches this value and a descriptor is made available/used respectively. \end{description} -After writing out some descriptors, both the device and the driver +After writing out some descriptors, the device/driver
Keep this unchanged?
content.tex matches this value and a descriptor is · line 356
Quoted 3 lines
content.tex +1
-1are expected to consult the relevant structure to find out -whether an interrupt/notification should be sent. +whether a(n) used/available buffer notification should be sent.
"whether a used respectively an available buffer notification..."?
content.tex matches this value and a descriptor is · line 358
Quoted 3 lines
content.tex +0
-0\subsubsection{Structure Size and Alignment} \label{sec:Packed Virtqueues / Structure Size and Alignment}
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[virtio] Re: [PATCH v2 2/6] notifications: notifications as basic virtio facility
In reply to Halil PasicQuoted 31 lines · On Mon, 11 Jun 2018 18:11:54 +0200 Halil Pasic <[email protected]> wrote:
Let's introduce notifications as basic virtio facility early on. This shall not only increase the cohesion between core and transport description by having a well-defined place where notifications are introduced, but also give us the opportunity to explain some discrepancies.
Namely notifications sent by the device to the driver were often called interrupts prior to v1.1. Getting completely rid of that terminology is however not viable in case of some names.
Signed-off-by Halil Pasic <[email protected]>--- content.tex | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-)content.tex +1
-0@@ -8,6 +8,7 @@ device consists of the following parts: \begin{itemize} \item Device status field \item Feature bits +\item Notifications \item Device Configuration space \item One or more virtqueues \end{itemize}@@ -150,6 +151,41 @@ requirements documented within these legacy interface sections. Specification text within these sections generally does not apply to non-transitional devices.
content.tex requirements documented within these legacy interface sections. · line 163
Quoted 10 lines
content.tex +10
-0+\section{Notifications}\label{sec:Basic Facilities of a Virtio Device +/ Notifications} + +The notion of sending a notification (driver to device or device +to driver) plays an important role in this specification. The +modus operandi of the notifications is transport specific. + +There are three types of notifications: +\begin{itemize} +\item device configuration space notification
Shouldn't that be "configuration _change_ notification"?
Quoted 18 lines
content.tex +18
-0+\item available buffer notification +\item used buffer notification. +\end{itemize} + +Device configuration space notifications and used buffer notifications +are sent by the device, the recipient is the driver. A device +configuration space notification indicates that a configuration space +has changed; a used buffer notification indicates that a buffer may +have been made used on the virtqueue designated by the notification. + +Available buffer notifications are sent by the driver, the recipient is +the device. This type of notification indicates that a buffer may have +been made available on the virtqueue designated by the notification. + +The semantic, the transport-specific implementations and other +important aspects of the different notifications are specified in detail +in the following chapters. +
content.tex requirements documented within these legacy interface sections. · line 191
Quoted 10 lines
content.tex +7
-0+Most transports implement notifications sent by the device to the +driver using interrupts. Therefore, in previous versions of this +specification, these notifications were often called interrupts. +Some names defined in this specification still retain this interrupt +terminology. Occasionally, the term event is used to refer to +a notification or a receipt of a notification. + \section{Device Configuration Space}\label{sec:Basic Facilities of a Virtio Device / Device Configuration Space} Device configuration space is generally used for rarely-changing or
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[virtio] Re: [PATCH v2 3/6] ccw: map common notifications terminology to ccw
In reply to Halil PasicQuoted 5 lines · On Mon, 11 Jun 2018 18:11:55 +0200 Halil Pasic <[email protected]> wrote:
The various notifications are introduced and specified in the common (i.e. transport agnostic) portion of this specification. How notifications are realised for a given transport is something each transport has to specify.
Quoted 8 lines
Let's make the relationship between the virtio-ccw terms and the common terms more obvious.
Signed-off-by Halil Pasic <[email protected]>Reviewed-by Stefan Hajnoczi <[email protected]>--- content.tex | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-)
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[virtio] Re: [PATCH v2 4/6] pci: map common notifications terminology to PCI
In reply to Halil PasicQuoted 5 lines · On Mon, 11 Jun 2018 18:11:56 +0200 Halil Pasic <[email protected]> wrote:
The various notifications are introduced and specified in the common (i.e. transport agnostic) portion of this specification. How notifications are realised for a given transport is something each transport has to specify.
Quoted 8 lines
Let's make the relationship between the PCI terms and the common terms more obvious.
Signed-off-by Halil Pasic <[email protected]>--- conformance.tex | 2 +- content.tex | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-)
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[virtio] Re: [PATCH v2 5/6] mmio: map common notifications terminology to MMIO
In reply to Halil PasicQuoted 17 lines · On Mon, 11 Jun 2018 18:11:57 +0200 Halil Pasic <[email protected]> wrote:
The various notifications are introduced and specified in the common (i.e. transport agnostic) portion of this specification. How notifications are realised for a given transport is something each transport has to specify.
Let's make the relationship between the virtio over MIIO terms and the common terms more obvious.
Signed-off-by Halil Pasic <[email protected]>--- content.tex | 26 ++++++++++++++------------ 1 files changed, 14 insertions(+), 12 deletions(-)content.tex +0
-0
(...)
content.tex The driver will typically initialize the virtual queue in the following way: · line 1722
Quoted 11 lines
content.tex +3
-3@@ -1716,26 +1716,28 @@ The driver will typically initialize the virtual queue in the following way: \item Write 0x1 to \field{QueueReady}. \end{enumerate} -\subsubsection{Notifying The Device}\label{sec:Virtio Transport Options / Virtio Over MMIO / MMIO-specific Initialization And Device Operation / Notifying The Device} +\subsubsection{Available Buffer Notifications}\label{sec:Virtio Transport Options / Virtio Over MMIO / MMIO-specific Initialization And Device Operation / Available Buffer Notifications} -The driver notifies the device about new buffers being available in -a queue by writing the index of the updated queue to \field{QueueNotify}. +The driver sends an available buffer notification to the device by +writing the index of the queue to \field{QueueNotify} to be notified.
That reads a bit awkward.
"...by writing the index of the queue to be notified to \field{QueueNotify}."?
Quoted 9 lines
content.tex +0
-3\subsubsection{Notifications From The Device}\label{sec:Virtio Transport Options / Virtio Over MMIO / MMIO-specific Initialization And Device Operation / Notifications From The Device} The memory mapped virtio device is using a single, dedicated interrupt signal, which is asserted when at least one of the bits described in the description of \field{InterruptStatus} -is set. This is how the device notifies the -driver about a new used buffer being available in the queue -or about a change in the device configuration.
content.tex The driver will typically initialize the virtual queue in the following way: · line 1734
Quoted 10 lines
content.tex +3
-4+is set. This is how the device sends a used buffer notification +or a configuration change notification to the device. \drivernormative{\paragraph}{Notifications From The Device}{Virtio Transport Options / Virtio Over MMIO / MMIO-specific Initialization And Device Operation / Notifications From The Device} After receiving an interrupt, the driver MUST read -\field{InterruptStatus} to check what caused the interrupt -(see the register description). After the interrupt is handled, -the driver MUST acknowledge it by writing a bit mask -corresponding to the handled events to the InterruptACK register. +
Extra empty line?
content.tex The driver will typically initialize the virtual queue in the following way: · line 1743
Quoted 9 lines
content.tex +6
-0+\field{InterruptStatus} to check what caused the interrupt (see the +register description). The used buffer notification bit being set +SHOULD be interpreted as a used buffer notification for each active +virtqueue. After the interrupt is handled, the driver MUST acknowledge +it by writing a bit mask corresponding to the handled events to the +InterruptACK register. \subsection{Legacy interface}\label{sec:Virtio Transport Options / Virtio Over MMIO / Legacy interface}
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[virtio] Re: [PATCH v2 6/6] notifications: update notifications terminology for devices
In reply to Halil PasicQuoted 10 lines · On Mon, 11 Jun 2018 18:11:58 +0200 Halil Pasic <[email protected]> wrote:
The specifications of some virtio device types are still using the old terminology for used buffer notifications and configuration change notifications calling these interrupts.
Let us fix that.
Signed-off-by Halil Pasic <[email protected]>--- content.tex | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-)
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[virtio] Re: [PATCH v2 1/6] notifications: unify notifications wording in core
In reply to Halil Pasicpacked-ring.tex in which their processing is complete. · line 73
Quoted 12 lines · Halil Pasic
packed-ring.tex +3
-2@@ -65,11 +65,12 @@ in which their processing is complete. The Device Event Suppression data structure is write-only by the device. It includes information for reducing the number of -device events - i.e. driver notifications to device. +device events - i.e. sending an available buffer notification +to the device. The Driver Event Suppression data structure is read-only by the device. It includes information for reducing the number of -driver events - i.e. device interrupts to driver. +driver events - i.e. send a used buffer notification to the driver.
This makes the "i.e." more natural:
"sending fewer used buffer notifications to the driver"
because the "send a used buffer notification to the driver" phrase doesn't directly relate to any preceding subphrase ("driver events", "number of driver events", or "reducing the number of driver events").
Quoted 19 lines
packed-ring.tex +3
-3\subsection{Driver and Device Ring Wrap Counters} \label{sec:Packed Virtqueues / Driver and Device Ring Wrap Counters}@@ -309,22 +310,20 @@ in the ring. \subsection{Driver and Device Event Suppression} \label{sec:Packed Virtqueues / Driver and Device Event Suppression} -In many systems driver and device notifications involve +In many systems used and available buffer notifications involve significant overhead. To mitigate this overhead, each virtqueue includes two identical structures used for controlling notifications between the device and the driver. The Driver Event Suppression structure is read-only by the -device and controls the events sent by the device -to the driver (e.g. interrupts). +device and controls the used buffer notifications (sent by the device +to the driver).
packed-ring.tex in the ring. · line 326
Quoted 10 lines
packed-ring.tex +3
-5The Device Event Suppression structure is read-only by -the driver and controls the events sent by the driver -to the device (e.g. IO). +the driver and controls the available buffer notifications (sent by the +driver to the device). -Each of these Event Suppression structures controls -both Descriptor Ring events and structure events, and -each includes the following fields: +Each of these Event Suppression includes the following fields:
Something is missing, "these" is plural but Event Suppression is singular:
Each of these Event Suppression structures ...
split-ring.tex VRING_AVAIL_F_NO_INTERRUPT, but the layout and value were identical. · line 348
Quoted 6 lines
split-ring.tex +2
-1Otherwise, if the VIRTIO_F_EVENT_IDX feature bit is negotiated: \begin{itemize} \item The driver MUST set \field{flags} to 0. -\item The driver MAY use \field{used_event} to advise the device that interrupts are unnecessary until the device writes entry with an index specified by \field{used_event} into the used ring (equivalently, until \field{idx} in the +\item The driver MAY use \field{used_event} to advise the device that +notifications are unnecessary until the device writes entry with an index specified by \field{used_event} into the used ring (equivalently, until \field{idx} in the
Pre-existing issue:
the device writes *an* entry
split-ring.tex The driver offers buffers to one of the device's virtqueues as follows: · line 574
Quoted 8 lines
split-ring.tex +2
-2@@ -562,8 +570,8 @@ The driver offers buffers to one of the device's virtqueues as follows: \item The driver performs a suitable memory barrier to ensure that it updates the \field{idx} field before checking for notification suppression. -\item If notifications are not suppressed, the driver notifies the device - of the new available buffers. +\item The driver sends an available buffers notification to the device if + such notifications are not suppressed.
For consistency:
s/available buffers notification/available buffer notification/
[virtio] Re: [PATCH v2 2/6] notifications: notifications as basic virtio facility
In reply to Halil PasicQuoted 1 line · Halil Pasic
+The semantic, the transport-specific implementations and other
s/semantic/semantics/
"A, B, and C" instead of "A, B and C".
[virtio] Re: [PATCH v2 6/6] notifications: update notifications terminology for devices
In reply to Halil PasicQuoted 10 lines · Halil Pasic
The specifications of some virtio device types are still using the old terminology for used buffer notifications and configuration change notifications calling these interrupts.
Let us fix that.
Signed-off-by Halil Pasic <[email protected]>--- content.tex | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-)
Re: [virtio] Re: [PATCH v2 1/6] notifications: unify notifications wording in core
In reply to Cornelia HuckQuoted 37 lines · Cornelia Huck
Quoted 27 lines · On Mon, 11 Jun 2018 18:11:53 +0200 Halil Pasic <[email protected]> wrote:
Let us unify the wording when talking about notifications. This change establishes the terms available buffer notification for what was usually simply called notification or virtqueue notification in v1.0 and used buffer notification for what was usually called interrupt.
The term configuration change notification in kept where called so and consolidated where it's called configuration change interrupt or similar.
The changes done here are limited to the core part, and don't conceptually involve neither the transports nor the devices (references are updated though). Future changes should address these parts.
Signed-off-by Halil Pasic <[email protected]>--- cl-os.tex | 2 +- conformance.tex | 8 +++--- content.tex | 26 +++++++++++-------- packed-ring.tex | 61 ++++++++++++++++++++++++++-------------------- split-ring.tex | 72 ++++++++++++++++++++++++++++++++----------------------- 5 files changed, 96 insertions(+), 73 deletions(-)content.tex +0
-0(...)
Quoted 4 lines
content.tex +0
-0@@ -388,10 +391,11 @@ reads unless notified. \subsection{Notification of Device Configuration Changes}\label{sec:General Initialization And Device Operation / Device Operation / Notification of Device Configuration Changes}
Quoted 8 lines
content.tex reads unless notified. · line 395
Quoted 4 lines
content.tex +2
-2-For devices where the device-specific configuration information can be changed, an -interrupt is delivered when a device-specific configuration change occurs. +For devices where the device-specific configuration information can be +changed, a configuration change notification is delivered when aPerhaps better "is sent", to keep in line with the used/available buffer notifications?
I agree, it sounds better. I kept 'delivered' without thinking about it. I will change this for v3.
Quoted 20 lines
Quoted 7 lines
content.tex +2
-1+device-specific configuration change occurs. -In addition, this interrupt is triggered by the device setting +In addition, this notification is triggered by the device setting DEVICE_NEEDS_RESET (see \ref{sec:Basic Facilities of a Virtio Device / Device Status Field / DEVICENEEDSRESET}). \section{Device Cleanup}\label{sec:General Initialization And Device Operation / Device Cleanup}(...)
Quoted 10 lines
content.tex +1
-1@@ -309,22 +310,20 @@ in the ring. \subsection{Driver and Device Event Suppression} \label{sec:Packed Virtqueues / Driver and Device Event Suppression} -In many systems driver and device notifications involve +In many systems used and available buffer notifications involve significant overhead. To mitigate this overhead, each virtqueue includes two identical structures used for controlling notifications between the device and the driver.
Quoted 8 lines
content.tex in the ring. · line 320
Quoted 5 lines
content.tex +2
-2The Driver Event Suppression structure is read-only by the -device and controls the events sent by the device -to the driver (e.g. interrupts). +device and controls the used buffer notifications (sent by the device +to the driver).Drop the brackets?
Can do (if nobody complains).
Quoted 9 lines
content.tex in the ring. · line 323
Quoted 6 lines
content.tex +2
-2The Device Event Suppression structure is read-only by -the driver and controls the events sent by the driver -to the device (e.g. IO). +the driver and controls the available buffer notifications (sent by the +driver to the device).Here as well.
Nod.
Quoted 8 lines
content.tex in the ring. · line 324
Quoted 5 lines
content.tex +1
-3-Each of these Event Suppression structures controls -both Descriptor Ring events and structure events, and -each includes the following fields: +Each of these Event Suppression includes the following fields:"Event Suppression" what? Keep "structures"?
Oh that was unintended.
Quoted 12 lines
content.tex matches this value and a descriptor is · line 354
Quoted 9 lines
content.tex +1
-1\begin{description} \item [Descriptor Ring Change Event Flags] Takes values:@@ -352,9 +351,9 @@ matches this value and a descriptor is made available/used respectively. \end{description} -After writing out some descriptors, both the device and the driver +After writing out some descriptors, the device/driverKeep this unchanged?
Quoted 6 lines
content.tex matches this value and a descriptor is · line 356
Quoted 3 lines
content.tex +1
-1are expected to consult the relevant structure to find out -whether an interrupt/notification should be sent. +whether a(n) used/available buffer notification should be sent."whether a used respectively an available buffer notification..."?
I wasn't really satisfied with my sentence. Now I see that my initial concern with 'both' (which I tried to avoid) is not valid.
I will change it.
Thanks for your review!
Halil
Quoted 4 lines
content.tex matches this value and a descriptor is · line 358
Quoted 3 lines
content.tex +0
-0\subsubsection{Structure Size and Alignment} \label{sec:Packed Virtqueues / Structure Size and Alignment}
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[virtio] Re: [PATCH v2 1/6] notifications: unify notifications wording in core
In reply to Stefan HajnocziQuoted 16 lines · Stefan Hajnoczi
packed-ring.tex in which their processing is complete. · line 73
Quoted 12 lines · Halil Pasic
packed-ring.tex +3
-2@@ -65,11 +65,12 @@ in which their processing is complete. The Device Event Suppression data structure is write-only by the device. It includes information for reducing the number of -device events - i.e. driver notifications to device. +device events - i.e. sending an available buffer notification +to the device. The Driver Event Suppression data structure is read-only by the device. It includes information for reducing the number of -driver events - i.e. device interrupts to driver. +driver events - i.e. send a used buffer notification to the driver.This makes the "i.e." more natural:
Quoted 6 lines
"sending fewer used buffer notifications to the driver"
because the "send a used buffer notification to the driver" phrase doesn't directly relate to any preceding subphrase ("driver events", "number of driver events", or "reducing the number of driver events").
Will do. My sentence does not make sense.
Quoted 33 lines
Quoted 19 lines
packed-ring.tex +3
-3\subsection{Driver and Device Ring Wrap Counters} \label{sec:Packed Virtqueues / Driver and Device Ring Wrap Counters}@@ -309,22 +310,20 @@ in the ring. \subsection{Driver and Device Event Suppression} \label{sec:Packed Virtqueues / Driver and Device Event Suppression} -In many systems driver and device notifications involve +In many systems used and available buffer notifications involve significant overhead. To mitigate this overhead, each virtqueue includes two identical structures used for controlling notifications between the device and the driver. The Driver Event Suppression structure is read-only by the -device and controls the events sent by the device -to the driver (e.g. interrupts). +device and controls the used buffer notifications (sent by the device +to the driver).packed-ring.tex in the ring. · line 326
Quoted 10 lines
packed-ring.tex +3
-5The Device Event Suppression structure is read-only by -the driver and controls the events sent by the driver -to the device (e.g. IO). +the driver and controls the available buffer notifications (sent by the +driver to the device). -Each of these Event Suppression structures controls -both Descriptor Ring events and structure events, and -each includes the following fields: +Each of these Event Suppression includes the following fields:Something is missing, "these" is plural but Event Suppression is singular:
Quoted 2 lines
Each of these Event Suppression structures ...
Will put back structures. Connie spotted it too.
Quoted 11 lines
split-ring.tex VRING_AVAIL_F_NO_INTERRUPT, but the layout and value were identical. · line 348
Quoted 6 lines
split-ring.tex +2
-1Otherwise, if the VIRTIO_F_EVENT_IDX feature bit is negotiated: \begin{itemize} \item The driver MUST set \field{flags} to 0. -\item The driver MAY use \field{used_event} to advise the device that interrupts are unnecessary until the device writes entry with an index specified by \field{used_event} into the used ring (equivalently, until \field{idx} in the +\item The driver MAY use \field{used_event} to advise the device that +notifications are unnecessary until the device writes entry with an index specified by \field{used_event} into the used ring (equivalently, until \field{idx} in thePre-existing issue:
the device writes *an* entry
I will fix it if already touching the sentence. Thanks for spotting it!
Quoted 4 lines
Quoted 4 lines
split-ring.tex +0
-0@@ -562,8 +570,8 @@ The driver offers buffers to one of the device's virtqueues as follows: \item The driver performs a suitable memory barrier to ensure that it updates the \field{idx} field before checking for notification suppression.
Quoted 9 lines
split-ring.tex The driver offers buffers to one of the device's virtqueues as follows: · line 574
Quoted 4 lines
split-ring.tex +2
-2-\item If notifications are not suppressed, the driver notifies the device - of the new available buffers. +\item The driver sends an available buffers notification to the device if + such notifications are not suppressed.For consistency:
s/available buffers notification/available buffer notification/
Sorry, I missed this one. Will fix.
Thanks for your review!
Regards,
Halil
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[virtio] Re: [PATCH v2 2/6] notifications: notifications as basic virtio facility
In reply to Stefan HajnocziQuoted 4 lines · Stefan Hajnoczi
Quoted 1 line · Halil Pasic
+The semantic, the transport-specific implementations and other
s/semantic/semantics/
Nod.
Quoted 3 lines
"A, B, and C" instead of "A, B and C".
Oxford comma. Learned something new again. Thanks!
Halil
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php