* virtio-sound Google Summer of Code project? @ 2023-01-29 22:10 Stefan Hajnoczi 2023-01-31 15:35 ` Stefan Hajnoczi 0 siblings, 1 reply; 13+ messages in thread From: Stefan Hajnoczi @ 2023-01-29 22:10 UTC (permalink / raw) To: chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier; +Cc: qemu-devel Hi Shreyansh, Gerd, and Laurent, The last virtio-sound RFC was sent in February last year. It was a spare time project. Understandably it's hard to complete the whole thing on weekends, evenings, etc. So I wanted to suggest relaunching the virtio-sound effort as a Google Summer of Code project. Google Summer of Code is a 12-week full-time remote work internship. The intern would be co-mentored by some (or all) of us. The project goal would be to merge virtio-sound with support for both playback and capture. Advanced features for multi-channel audio, etc can be stretch goals. I haven't looked in detail at the patches from February 2022, so I don't know the exact state and whether there is enough work remaining for a 12-week internship. What do you think? Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-29 22:10 virtio-sound Google Summer of Code project? Stefan Hajnoczi @ 2023-01-31 15:35 ` Stefan Hajnoczi 2023-01-31 17:43 ` Alex Bennée 2023-02-06 8:32 ` Anton Yakovlev 0 siblings, 2 replies; 13+ messages in thread From: Stefan Hajnoczi @ 2023-01-31 15:35 UTC (permalink / raw) To: chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, Anton Yakovlev Cc: qemu-devel On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: > > Hi Shreyansh, Gerd, and Laurent, > The last virtio-sound RFC was sent in February last year. It was a > spare time project. Understandably it's hard to complete the whole > thing on weekends, evenings, etc. So I wanted to suggest relaunching > the virtio-sound effort as a Google Summer of Code project. > > Google Summer of Code is a 12-week full-time remote work internship. > The intern would be co-mentored by some (or all) of us. The project > goal would be to merge virtio-sound with support for both playback and > capture. Advanced features for multi-channel audio, etc can be stretch > goals. > > I haven't looked in detail at the patches from February 2022, so I > don't know the exact state and whether there is enough work remaining > for a 12-week internship. What do you think? Adding Anton. I have updated the old wiki page for this project idea and added it to the 2023 ideas list: https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound Please let me know if you wish to co-mentor this project! Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-31 15:35 ` Stefan Hajnoczi @ 2023-01-31 17:43 ` Alex Bennée 2023-01-31 18:19 ` Stefan Hajnoczi 2023-02-06 8:32 ` Anton Yakovlev 1 sibling, 1 reply; 13+ messages in thread From: Alex Bennée @ 2023-01-31 17:43 UTC (permalink / raw) To: Stefan Hajnoczi Cc: chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, Anton Yakovlev, qemu-devel Stefan Hajnoczi <stefanha@gmail.com> writes: > On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: >> >> Hi Shreyansh, Gerd, and Laurent, >> The last virtio-sound RFC was sent in February last year. It was a >> spare time project. Understandably it's hard to complete the whole >> thing on weekends, evenings, etc. So I wanted to suggest relaunching >> the virtio-sound effort as a Google Summer of Code project. >> >> Google Summer of Code is a 12-week full-time remote work internship. >> The intern would be co-mentored by some (or all) of us. The project >> goal would be to merge virtio-sound with support for both playback and >> capture. Advanced features for multi-channel audio, etc can be stretch >> goals. >> >> I haven't looked in detail at the patches from February 2022, so I >> don't know the exact state and whether there is enough work remaining >> for a 12-week internship. What do you think? > > Adding Anton. > > I have updated the old wiki page for this project idea and added it to > the 2023 ideas list: > https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound > > Please let me know if you wish to co-mentor this project! I'd be happy to help - although if someone was rust inclined I'd also be happy to mentor a rust-vmm vhost-user implementation of VirtIO sound. -- Alex Bennée Virtualisation Tech Lead @ Linaro ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-31 17:43 ` Alex Bennée @ 2023-01-31 18:19 ` Stefan Hajnoczi 2023-01-31 18:42 ` Alex Bennée 2023-01-31 19:48 ` Marc-André Lureau 0 siblings, 2 replies; 13+ messages in thread From: Stefan Hajnoczi @ 2023-01-31 18:19 UTC (permalink / raw) To: Alex Bennée Cc: chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, Anton Yakovlev, qemu-devel, Marc-André Lureau On Tue, 31 Jan 2023 at 12:43, Alex Bennée <alex.bennee@linaro.org> wrote: > > > Stefan Hajnoczi <stefanha@gmail.com> writes: > > > On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: > >> > >> Hi Shreyansh, Gerd, and Laurent, > >> The last virtio-sound RFC was sent in February last year. It was a > >> spare time project. Understandably it's hard to complete the whole > >> thing on weekends, evenings, etc. So I wanted to suggest relaunching > >> the virtio-sound effort as a Google Summer of Code project. > >> > >> Google Summer of Code is a 12-week full-time remote work internship. > >> The intern would be co-mentored by some (or all) of us. The project > >> goal would be to merge virtio-sound with support for both playback and > >> capture. Advanced features for multi-channel audio, etc can be stretch > >> goals. > >> > >> I haven't looked in detail at the patches from February 2022, so I > >> don't know the exact state and whether there is enough work remaining > >> for a 12-week internship. What do you think? > > > > Adding Anton. > > > > I have updated the old wiki page for this project idea and added it to > > the 2023 ideas list: > > https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound > > > > Please let me know if you wish to co-mentor this project! > > I'd be happy to help - although if someone was rust inclined I'd also be > happy to mentor a rust-vmm vhost-user implementation of VirtIO sound. Maybe Gerd can tell us about the QEMU audio subsystem features that may be lost if developing a standalone vhost-user device. Two things come to mind: 1. May not run on all host OSes that QEMU supports if it supports fewer native audio APIs than QEMU. 2. May not support forwarding audio to remote desktop solutions that stream audio over the network. I don't know if/how this works with VNC/RDP/Spice, but a separate vhost-user process will need to do extra work to send the audio over the remote desktop connection. I have CCed Marc-André for information on streaming audio over remote desktop. Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-31 18:19 ` Stefan Hajnoczi @ 2023-01-31 18:42 ` Alex Bennée 2023-01-31 18:45 ` Stefan Hajnoczi 2023-01-31 19:48 ` Marc-André Lureau 1 sibling, 1 reply; 13+ messages in thread From: Alex Bennée @ 2023-01-31 18:42 UTC (permalink / raw) To: Stefan Hajnoczi Cc: chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, Anton Yakovlev, qemu-devel, Marc-André Lureau Stefan Hajnoczi <stefanha@gmail.com> writes: > On Tue, 31 Jan 2023 at 12:43, Alex Bennée <alex.bennee@linaro.org> wrote: >> >> >> Stefan Hajnoczi <stefanha@gmail.com> writes: >> >> > On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: >> >> >> >> Hi Shreyansh, Gerd, and Laurent, >> >> The last virtio-sound RFC was sent in February last year. It was a >> >> spare time project. Understandably it's hard to complete the whole >> >> thing on weekends, evenings, etc. So I wanted to suggest relaunching >> >> the virtio-sound effort as a Google Summer of Code project. >> >> >> >> Google Summer of Code is a 12-week full-time remote work internship. >> >> The intern would be co-mentored by some (or all) of us. The project >> >> goal would be to merge virtio-sound with support for both playback and >> >> capture. Advanced features for multi-channel audio, etc can be stretch >> >> goals. >> >> >> >> I haven't looked in detail at the patches from February 2022, so I >> >> don't know the exact state and whether there is enough work remaining >> >> for a 12-week internship. What do you think? >> > >> > Adding Anton. >> > >> > I have updated the old wiki page for this project idea and added it to >> > the 2023 ideas list: >> > https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound >> > >> > Please let me know if you wish to co-mentor this project! >> >> I'd be happy to help - although if someone was rust inclined I'd also be >> happy to mentor a rust-vmm vhost-user implementation of VirtIO sound. > > Maybe Gerd can tell us about the QEMU audio subsystem features that > may be lost if developing a standalone vhost-user device. > > Two things come to mind: > 1. May not run on all host OSes that QEMU supports if it supports > fewer native audio APIs than QEMU. > 2. May not support forwarding audio to remote desktop solutions that > stream audio over the network. I don't know if/how this works with > VNC/RDP/Spice, but a separate vhost-user process will need to do extra > work to send the audio over the remote desktop connection. Hmm good point. Maybe a stretch goal? > > I have CCed Marc-André for information on streaming audio over remote desktop. > > Stefan -- Alex Bennée Virtualisation Tech Lead @ Linaro ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-31 18:42 ` Alex Bennée @ 2023-01-31 18:45 ` Stefan Hajnoczi 0 siblings, 0 replies; 13+ messages in thread From: Stefan Hajnoczi @ 2023-01-31 18:45 UTC (permalink / raw) To: Alex Bennée Cc: chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, Anton Yakovlev, qemu-devel, Marc-André Lureau On Tue, 31 Jan 2023 at 13:43, Alex Bennée <alex.bennee@linaro.org> wrote: > > > Stefan Hajnoczi <stefanha@gmail.com> writes: > > > On Tue, 31 Jan 2023 at 12:43, Alex Bennée <alex.bennee@linaro.org> wrote: > >> > >> > >> Stefan Hajnoczi <stefanha@gmail.com> writes: > >> > >> > On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: > >> >> > >> >> Hi Shreyansh, Gerd, and Laurent, > >> >> The last virtio-sound RFC was sent in February last year. It was a > >> >> spare time project. Understandably it's hard to complete the whole > >> >> thing on weekends, evenings, etc. So I wanted to suggest relaunching > >> >> the virtio-sound effort as a Google Summer of Code project. > >> >> > >> >> Google Summer of Code is a 12-week full-time remote work internship. > >> >> The intern would be co-mentored by some (or all) of us. The project > >> >> goal would be to merge virtio-sound with support for both playback and > >> >> capture. Advanced features for multi-channel audio, etc can be stretch > >> >> goals. > >> >> > >> >> I haven't looked in detail at the patches from February 2022, so I > >> >> don't know the exact state and whether there is enough work remaining > >> >> for a 12-week internship. What do you think? > >> > > >> > Adding Anton. > >> > > >> > I have updated the old wiki page for this project idea and added it to > >> > the 2023 ideas list: > >> > https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound > >> > > >> > Please let me know if you wish to co-mentor this project! > >> > >> I'd be happy to help - although if someone was rust inclined I'd also be > >> happy to mentor a rust-vmm vhost-user implementation of VirtIO sound. > > > > Maybe Gerd can tell us about the QEMU audio subsystem features that > > may be lost if developing a standalone vhost-user device. > > > > Two things come to mind: > > 1. May not run on all host OSes that QEMU supports if it supports > > fewer native audio APIs than QEMU. > > 2. May not support forwarding audio to remote desktop solutions that > > stream audio over the network. I don't know if/how this works with > > VNC/RDP/Spice, but a separate vhost-user process will need to do extra > > work to send the audio over the remote desktop connection. > > Hmm good point. Maybe a stretch goal? Let's see what Gerd and Marc-André think. It would be nice to implement the device in Rust... Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-31 18:19 ` Stefan Hajnoczi 2023-01-31 18:42 ` Alex Bennée @ 2023-01-31 19:48 ` Marc-André Lureau 2023-01-31 20:29 ` Stefan Hajnoczi 1 sibling, 1 reply; 13+ messages in thread From: Marc-André Lureau @ 2023-01-31 19:48 UTC (permalink / raw) To: Stefan Hajnoczi Cc: Alex Bennée, chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, Anton Yakovlev, qemu-devel Hi On Tue, Jan 31, 2023 at 10:20 PM Stefan Hajnoczi <stefanha@gmail.com> wrote: > > On Tue, 31 Jan 2023 at 12:43, Alex Bennée <alex.bennee@linaro.org> wrote: > > > > > > Stefan Hajnoczi <stefanha@gmail.com> writes: > > > > > On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: > > >> > > >> Hi Shreyansh, Gerd, and Laurent, > > >> The last virtio-sound RFC was sent in February last year. It was a > > >> spare time project. Understandably it's hard to complete the whole > > >> thing on weekends, evenings, etc. So I wanted to suggest relaunching > > >> the virtio-sound effort as a Google Summer of Code project. > > >> > > >> Google Summer of Code is a 12-week full-time remote work internship. > > >> The intern would be co-mentored by some (or all) of us. The project > > >> goal would be to merge virtio-sound with support for both playback and > > >> capture. Advanced features for multi-channel audio, etc can be stretch > > >> goals. > > >> > > >> I haven't looked in detail at the patches from February 2022, so I > > >> don't know the exact state and whether there is enough work remaining > > >> for a 12-week internship. What do you think? > > > > > > Adding Anton. > > > > > > I have updated the old wiki page for this project idea and added it to > > > the 2023 ideas list: > > > https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound > > > > > > Please let me know if you wish to co-mentor this project! > > > > I'd be happy to help - although if someone was rust inclined I'd also be > > happy to mentor a rust-vmm vhost-user implementation of VirtIO sound. > > Maybe Gerd can tell us about the QEMU audio subsystem features that > may be lost if developing a standalone vhost-user device. > > Two things come to mind: > 1. May not run on all host OSes that QEMU supports if it supports > fewer native audio APIs than QEMU. Using GStreamer in Rust is well supported, and should give all the backends that you ever need (alternatively, there might be some Rust audio crates that I am not aware of). In all cases, I would not implement various backends the way QEMU audio/ has grown... > 2. May not support forwarding audio to remote desktop solutions that > stream audio over the network. I don't know if/how this works with > VNC/RDP/Spice, but a separate vhost-user process will need to do extra > work to send the audio over the remote desktop connection. Well, some of the goal with `-display dbus` is to move the remote desktop handling outside of QEMU. I had in mind that the protocol will have to evolve to handle multiprocess, so audio, display, input etc interfaces can be provided by external processes. In fact, it should be possible without protocol change for audio devices with the current interface (https://gitlab.com/qemu-project/qemu/-/blob/master/ui/dbus-display1.xml#L483). In short, I wish the project implements the device in Rust, with `gstreamer` and `dbus` as optional features. (that should be introspectable via --print-capabilities stuff) -- Marc-André Lureau ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-31 19:48 ` Marc-André Lureau @ 2023-01-31 20:29 ` Stefan Hajnoczi 2023-01-31 21:18 ` Marc-André Lureau 0 siblings, 1 reply; 13+ messages in thread From: Stefan Hajnoczi @ 2023-01-31 20:29 UTC (permalink / raw) To: Marc-André Lureau Cc: Alex Bennée, chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, Anton Yakovlev, qemu-devel On Tue, 31 Jan 2023 at 14:48, Marc-André Lureau <marcandre.lureau@gmail.com> wrote: > > Hi > > On Tue, Jan 31, 2023 at 10:20 PM Stefan Hajnoczi <stefanha@gmail.com> wrote: > > > > On Tue, 31 Jan 2023 at 12:43, Alex Bennée <alex.bennee@linaro.org> wrote: > > > > > > > > > Stefan Hajnoczi <stefanha@gmail.com> writes: > > > > > > > On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: > > > >> > > > >> Hi Shreyansh, Gerd, and Laurent, > > > >> The last virtio-sound RFC was sent in February last year. It was a > > > >> spare time project. Understandably it's hard to complete the whole > > > >> thing on weekends, evenings, etc. So I wanted to suggest relaunching > > > >> the virtio-sound effort as a Google Summer of Code project. > > > >> > > > >> Google Summer of Code is a 12-week full-time remote work internship. > > > >> The intern would be co-mentored by some (or all) of us. The project > > > >> goal would be to merge virtio-sound with support for both playback and > > > >> capture. Advanced features for multi-channel audio, etc can be stretch > > > >> goals. > > > >> > > > >> I haven't looked in detail at the patches from February 2022, so I > > > >> don't know the exact state and whether there is enough work remaining > > > >> for a 12-week internship. What do you think? > > > > > > > > Adding Anton. > > > > > > > > I have updated the old wiki page for this project idea and added it to > > > > the 2023 ideas list: > > > > https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound > > > > > > > > Please let me know if you wish to co-mentor this project! > > > > > > I'd be happy to help - although if someone was rust inclined I'd also be > > > happy to mentor a rust-vmm vhost-user implementation of VirtIO sound. > > > > Maybe Gerd can tell us about the QEMU audio subsystem features that > > may be lost if developing a standalone vhost-user device. > > > > Two things come to mind: > > 1. May not run on all host OSes that QEMU supports if it supports > > fewer native audio APIs than QEMU. > > Using GStreamer in Rust is well supported, and should give all the > backends that you ever need (alternatively, there might be some Rust > audio crates that I am not aware of). In all cases, I would not > implement various backends the way QEMU audio/ has grown... > > > 2. May not support forwarding audio to remote desktop solutions that > > stream audio over the network. I don't know if/how this works with > > VNC/RDP/Spice, but a separate vhost-user process will need to do extra > > work to send the audio over the remote desktop connection. > > Well, some of the goal with `-display dbus` is to move the remote > desktop handling outside of QEMU. I had in mind that the protocol will > have to evolve to handle multiprocess, so audio, display, input etc > interfaces can be provided by external processes. In fact, it should > be possible without protocol change for audio devices with the current > interface (https://gitlab.com/qemu-project/qemu/-/blob/master/ui/dbus-display1.xml#L483). > > In short, I wish the project implements the device in Rust, with > `gstreamer` and `dbus` as optional features. (that should be > introspectable via --print-capabilities stuff) Cool, then let's go with a Rust vhost-user device implementation! Can you elaborate on how the "gstreamer" feature would be used by the process launching the vhost-user back-end? Do you mean there should be a standard command-line syntax for specifying the playback and capture devices that maps directly to GStreamer (e.g. like gst-launch-1.0)? Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-31 20:29 ` Stefan Hajnoczi @ 2023-01-31 21:18 ` Marc-André Lureau 2023-01-31 21:41 ` Stefan Hajnoczi 0 siblings, 1 reply; 13+ messages in thread From: Marc-André Lureau @ 2023-01-31 21:18 UTC (permalink / raw) To: Stefan Hajnoczi Cc: Alex Bennée, chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, Anton Yakovlev, qemu-devel Hi On Wed, Feb 1, 2023 at 12:29 AM Stefan Hajnoczi <stefanha@gmail.com> wrote: > > On Tue, 31 Jan 2023 at 14:48, Marc-André Lureau > <marcandre.lureau@gmail.com> wrote: > > > > Hi > > > > On Tue, Jan 31, 2023 at 10:20 PM Stefan Hajnoczi <stefanha@gmail.com> wrote: > > > > > > On Tue, 31 Jan 2023 at 12:43, Alex Bennée <alex.bennee@linaro.org> wrote: > > > > > > > > > > > > Stefan Hajnoczi <stefanha@gmail.com> writes: > > > > > > > > > On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: > > > > >> > > > > >> Hi Shreyansh, Gerd, and Laurent, > > > > >> The last virtio-sound RFC was sent in February last year. It was a > > > > >> spare time project. Understandably it's hard to complete the whole > > > > >> thing on weekends, evenings, etc. So I wanted to suggest relaunching > > > > >> the virtio-sound effort as a Google Summer of Code project. > > > > >> > > > > >> Google Summer of Code is a 12-week full-time remote work internship. > > > > >> The intern would be co-mentored by some (or all) of us. The project > > > > >> goal would be to merge virtio-sound with support for both playback and > > > > >> capture. Advanced features for multi-channel audio, etc can be stretch > > > > >> goals. > > > > >> > > > > >> I haven't looked in detail at the patches from February 2022, so I > > > > >> don't know the exact state and whether there is enough work remaining > > > > >> for a 12-week internship. What do you think? > > > > > > > > > > Adding Anton. > > > > > > > > > > I have updated the old wiki page for this project idea and added it to > > > > > the 2023 ideas list: > > > > > https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound > > > > > > > > > > Please let me know if you wish to co-mentor this project! > > > > > > > > I'd be happy to help - although if someone was rust inclined I'd also be > > > > happy to mentor a rust-vmm vhost-user implementation of VirtIO sound. > > > > > > Maybe Gerd can tell us about the QEMU audio subsystem features that > > > may be lost if developing a standalone vhost-user device. > > > > > > Two things come to mind: > > > 1. May not run on all host OSes that QEMU supports if it supports > > > fewer native audio APIs than QEMU. > > > > Using GStreamer in Rust is well supported, and should give all the > > backends that you ever need (alternatively, there might be some Rust > > audio crates that I am not aware of). In all cases, I would not > > implement various backends the way QEMU audio/ has grown... > > > > > 2. May not support forwarding audio to remote desktop solutions that > > > stream audio over the network. I don't know if/how this works with > > > VNC/RDP/Spice, but a separate vhost-user process will need to do extra > > > work to send the audio over the remote desktop connection. > > > > Well, some of the goal with `-display dbus` is to move the remote > > desktop handling outside of QEMU. I had in mind that the protocol will > > have to evolve to handle multiprocess, so audio, display, input etc > > interfaces can be provided by external processes. In fact, it should > > be possible without protocol change for audio devices with the current > > interface (https://gitlab.com/qemu-project/qemu/-/blob/master/ui/dbus-display1.xml#L483). > > > > In short, I wish the project implements the device in Rust, with > > `gstreamer` and `dbus` as optional features. (that should be > > introspectable via --print-capabilities stuff) > > Cool, then let's go with a Rust vhost-user device implementation! > > Can you elaborate on how the "gstreamer" feature would be used by the > process launching the vhost-user back-end? Do you mean there should be > a standard command-line syntax for specifying the playback and capture > devices that maps directly to GStreamer (e.g. like gst-launch-1.0)? Roughly what comes in mind is that the backend should always offer a --audio-backend=... option, defaulting to something sensible, and always have `none`, I guess. - when the `gstreamer` feature & capability is available, can be set to 'gstreamer'. Additionally, options like --gst-sink='pipeline' --gst-src='pipeline' could be supported too, but it should do something sensible here as well, by using autoaudiosink/autoaudiosrc by default. - when the `dbus` feature & capability is available, can be set to 'dbus' (or qemu-dbus?). It may require some extra option too, to communicate back with qemu, such as `--dbus-addr=addr`, or `--dbus-fd=N`. -- Marc-André Lureau ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-31 21:18 ` Marc-André Lureau @ 2023-01-31 21:41 ` Stefan Hajnoczi 0 siblings, 0 replies; 13+ messages in thread From: Stefan Hajnoczi @ 2023-01-31 21:41 UTC (permalink / raw) To: Marc-André Lureau Cc: Alex Bennée, chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, Anton Yakovlev, qemu-devel On Tue, 31 Jan 2023 at 16:19, Marc-André Lureau <marcandre.lureau@gmail.com> wrote: > > Hi > > On Wed, Feb 1, 2023 at 12:29 AM Stefan Hajnoczi <stefanha@gmail.com> wrote: > > > > On Tue, 31 Jan 2023 at 14:48, Marc-André Lureau > > <marcandre.lureau@gmail.com> wrote: > > > > > > Hi > > > > > > On Tue, Jan 31, 2023 at 10:20 PM Stefan Hajnoczi <stefanha@gmail.com> wrote: > > > > > > > > On Tue, 31 Jan 2023 at 12:43, Alex Bennée <alex.bennee@linaro.org> wrote: > > > > > > > > > > > > > > > Stefan Hajnoczi <stefanha@gmail.com> writes: > > > > > > > > > > > On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: > > > > > >> > > > > > >> Hi Shreyansh, Gerd, and Laurent, > > > > > >> The last virtio-sound RFC was sent in February last year. It was a > > > > > >> spare time project. Understandably it's hard to complete the whole > > > > > >> thing on weekends, evenings, etc. So I wanted to suggest relaunching > > > > > >> the virtio-sound effort as a Google Summer of Code project. > > > > > >> > > > > > >> Google Summer of Code is a 12-week full-time remote work internship. > > > > > >> The intern would be co-mentored by some (or all) of us. The project > > > > > >> goal would be to merge virtio-sound with support for both playback and > > > > > >> capture. Advanced features for multi-channel audio, etc can be stretch > > > > > >> goals. > > > > > >> > > > > > >> I haven't looked in detail at the patches from February 2022, so I > > > > > >> don't know the exact state and whether there is enough work remaining > > > > > >> for a 12-week internship. What do you think? > > > > > > > > > > > > Adding Anton. > > > > > > > > > > > > I have updated the old wiki page for this project idea and added it to > > > > > > the 2023 ideas list: > > > > > > https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound > > > > > > > > > > > > Please let me know if you wish to co-mentor this project! > > > > > > > > > > I'd be happy to help - although if someone was rust inclined I'd also be > > > > > happy to mentor a rust-vmm vhost-user implementation of VirtIO sound. > > > > > > > > Maybe Gerd can tell us about the QEMU audio subsystem features that > > > > may be lost if developing a standalone vhost-user device. > > > > > > > > Two things come to mind: > > > > 1. May not run on all host OSes that QEMU supports if it supports > > > > fewer native audio APIs than QEMU. > > > > > > Using GStreamer in Rust is well supported, and should give all the > > > backends that you ever need (alternatively, there might be some Rust > > > audio crates that I am not aware of). In all cases, I would not > > > implement various backends the way QEMU audio/ has grown... > > > > > > > 2. May not support forwarding audio to remote desktop solutions that > > > > stream audio over the network. I don't know if/how this works with > > > > VNC/RDP/Spice, but a separate vhost-user process will need to do extra > > > > work to send the audio over the remote desktop connection. > > > > > > Well, some of the goal with `-display dbus` is to move the remote > > > desktop handling outside of QEMU. I had in mind that the protocol will > > > have to evolve to handle multiprocess, so audio, display, input etc > > > interfaces can be provided by external processes. In fact, it should > > > be possible without protocol change for audio devices with the current > > > interface (https://gitlab.com/qemu-project/qemu/-/blob/master/ui/dbus-display1.xml#L483). > > > > > > In short, I wish the project implements the device in Rust, with > > > `gstreamer` and `dbus` as optional features. (that should be > > > introspectable via --print-capabilities stuff) > > > > Cool, then let's go with a Rust vhost-user device implementation! > > > > Can you elaborate on how the "gstreamer" feature would be used by the > > process launching the vhost-user back-end? Do you mean there should be > > a standard command-line syntax for specifying the playback and capture > > devices that maps directly to GStreamer (e.g. like gst-launch-1.0)? > > Roughly what comes in mind is that the backend should always offer a > --audio-backend=... option, defaulting to something sensible, and > always have `none`, I guess. > - when the `gstreamer` feature & capability is available, can be set > to 'gstreamer'. Additionally, options like --gst-sink='pipeline' > --gst-src='pipeline' could be supported too, but it should do > something sensible here as well, by using autoaudiosink/autoaudiosrc > by default. > - when the `dbus` feature & capability is available, can be set to > 'dbus' (or qemu-dbus?). It may require some extra option too, to > communicate back with qemu, such as `--dbus-addr=addr`, or > `--dbus-fd=N`. I see. Thanks for explaining. I have updated the project idea now. Feel free to make edits or add yourselves as mentors: https://wiki.qemu.org/Internships/ProjectIdeas/VirtioSound Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-01-31 15:35 ` Stefan Hajnoczi 2023-01-31 17:43 ` Alex Bennée @ 2023-02-06 8:32 ` Anton Yakovlev 2023-02-06 14:22 ` Stefan Hajnoczi 1 sibling, 1 reply; 13+ messages in thread From: Anton Yakovlev @ 2023-02-06 8:32 UTC (permalink / raw) To: Stefan Hajnoczi, chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier Cc: qemu-devel Hi guys, If anything, I'm here. Not sure I'll have time to be a mentor, but if there are any questions I can answer, you're welcome. On 31.01.2023 16:35, Stefan Hajnoczi wrote: > On Sun, 29 Jan 2023 at 17:10, Stefan Hajnoczi <stefanha@gmail.com> wrote: >> >> Hi Shreyansh, Gerd, and Laurent, >> The last virtio-sound RFC was sent in February last year. It was a >> spare time project. Understandably it's hard to complete the whole >> thing on weekends, evenings, etc. So I wanted to suggest relaunching >> the virtio-sound effort as a Google Summer of Code project. >> >> Google Summer of Code is a 12-week full-time remote work internship. >> The intern would be co-mentored by some (or all) of us. The project >> goal would be to merge virtio-sound with support for both playback and >> capture. Advanced features for multi-channel audio, etc can be stretch >> goals. >> >> I haven't looked in detail at the patches from February 2022, so I >> don't know the exact state and whether there is enough work remaining >> for a 12-week internship. What do you think? > > Adding Anton. > > I have updated the old wiki page for this project idea and added it to > the 2023 ideas list: > https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwiki.qemu.org%2fInternships%2fProjectIdeas%2fVirtioSound&umid=dfa27714-6bd5-4f51-afb5-d0561afc03c8&auth=53c7c7de28b92dfd96e93d9dd61a23e634d2fbec-45bc593563b7a9935517db85a53255e7b79f3550 > > Please let me know if you wish to co-mentor this project! > > Stefan -- Anton Yakovlev Senior Software Engineer OpenSynergy GmbH Rotherstr. 20, 10245 Berlin ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-02-06 8:32 ` Anton Yakovlev @ 2023-02-06 14:22 ` Stefan Hajnoczi 2023-02-21 16:50 ` Stefan Hajnoczi 0 siblings, 1 reply; 13+ messages in thread From: Stefan Hajnoczi @ 2023-02-06 14:22 UTC (permalink / raw) To: Anton Yakovlev Cc: chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, qemu-devel On Mon, 6 Feb 2023 at 03:33, Anton Yakovlev <anton.yakovlev@opensynergy.com> wrote: > If anything, I'm here. Not sure I'll have time to be a mentor, but if there > are any questions I can answer, you're welcome. Thank you, Anton! Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: virtio-sound Google Summer of Code project? 2023-02-06 14:22 ` Stefan Hajnoczi @ 2023-02-21 16:50 ` Stefan Hajnoczi 0 siblings, 0 replies; 13+ messages in thread From: Stefan Hajnoczi @ 2023-02-21 16:50 UTC (permalink / raw) To: Anton Yakovlev Cc: chouhan.shreyansh2702, Gerd Hoffmann, Laurent Vivier, qemu-devel, Stefano Garzarella Hi everyone, I have removed the project idea from the GSoC 2023 ideas list because Stefano Garzarella is picking up Shreyansh's patches. Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2023-02-21 16:51 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-01-29 22:10 virtio-sound Google Summer of Code project? Stefan Hajnoczi 2023-01-31 15:35 ` Stefan Hajnoczi 2023-01-31 17:43 ` Alex Bennée 2023-01-31 18:19 ` Stefan Hajnoczi 2023-01-31 18:42 ` Alex Bennée 2023-01-31 18:45 ` Stefan Hajnoczi 2023-01-31 19:48 ` Marc-André Lureau 2023-01-31 20:29 ` Stefan Hajnoczi 2023-01-31 21:18 ` Marc-André Lureau 2023-01-31 21:41 ` Stefan Hajnoczi 2023-02-06 8:32 ` Anton Yakovlev 2023-02-06 14:22 ` Stefan Hajnoczi 2023-02-21 16:50 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).