All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-dev] Clarification of VIRTIO_F_EVENT_IDX driver conditions.
@ 2022-06-01 20:03 Patrick Mosca
  2022-06-05 20:29 ` Michael S. Tsirkin
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick Mosca @ 2022-06-01 20:03 UTC (permalink / raw)
  To: Virtio-Dev; +Cc: Patrick Mosca, Cameron Esfahani

We ran into an edge case in the VIRTIO_F_EVENT_IDX feature where a notification could be missed if there is a "streak" in skipped notifications. If the difference between the event index and available index wraps before a notification is needed, there exists a case where a notification must be sent but is not sent.


Signed-off-by: Patrick Mosca <pmosca@apple.com>
Signed-off-by: Cameron Esfahani <dirty@apple.com>
---
 split-ring.tex | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/split-ring.tex b/split-ring.tex
index bfef62d..9650e5e 100644
--- a/split-ring.tex
+++ b/split-ring.tex
@@ -530,6 +530,9 @@ \subsection{Available Buffer Notification Suppression}\label{sec:Basic Facilitie
         \item If the \field{idx} field in the available ring (which determined
           where that descriptor index was placed) was equal to
           \field{avail_event}, the driver MUST send a notification.
+        \item If the number of descriptors added to the queue since
+          the last notification is greater than 65535, the driver MUST
+          send a notification.
         \item Otherwise the driver SHOULD NOT send a notification.
   \end{itemize}
 \end{itemize}
-- 
2.32.0 (Apple Git-131)


-Patrick Mosca
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-11 16:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01 20:03 [virtio-dev] Clarification of VIRTIO_F_EVENT_IDX driver conditions Patrick Mosca
2022-06-05 20:29 ` Michael S. Tsirkin
2022-06-16 20:53   ` Patrick Mosca
2022-06-17 10:30     ` Michael S. Tsirkin
2022-06-24 22:39       ` Patrick Mosca
2022-08-11 16:58         ` Patrick Mosca

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.