All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-dev] virtio-snd spec question
@ 2022-02-01 23:57 Roman Kiryanov
  2022-02-02  7:44 ` Michael S. Tsirkin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Roman Kiryanov @ 2022-02-01 23:57 UTC (permalink / raw)
  To: virtio-dev

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

Hello,

I work in Android Studio Emulator and I am currently implementing a
virtio-snd device. We found a spec draft here:

https://github.com/oasis-tcs/virtio-spec/commit/e73c8cdf3e822fd83c26c6de964a947670f93cc3#diff-73045e70aeaf45f93087610437b705e2d320c82a9d29b4027721f5f5f3918dc5

It mentions four virtqueues: ctl, event, rx and tx. It is not very clear
where a virtio-snd device should put responses to the ctl requests from the
linux kernel driver. There is a kernel driver implementation and we have a
virtio-snd device implemented in another emulator, it uses the same
virtqueue (ctl) to put ctl responses and the current kernel driver seems
happy with this.

Do you know if this is expected behavior? I am far from an expert here, but
I believe the device and the kernel will race here by reading from the same
virtqueue: the device could read VirtQueueElement produced by itself before
the kernel if the kernel is not fast enough.

Thank you.

Regards,
Roman.

[-- Attachment #2: Type: text/html, Size: 1323 bytes --]

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

end of thread, other threads:[~2022-02-18  6:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-01 23:57 [virtio-dev] virtio-snd spec question Roman Kiryanov
2022-02-02  7:44 ` Michael S. Tsirkin
2022-02-02 18:43   ` Roman Kiryanov
2022-02-02 22:01     ` Michael S. Tsirkin
2022-02-03 10:36 ` Stefan Hajnoczi
     [not found]   ` <CAAQ-SiNEk3OzBK6DGtufWKS+wqysZeN2Ntp3tHa_3N=dbFCrSg@mail.gmail.com>
2022-02-11  5:41     ` Roman Kiryanov
2022-02-06 15:23 ` Anton Yakovlev
2022-02-18  6:31   ` Roman Kiryanov

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.