mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-05 08:55:37 +00:00
This commit removes ControlMessage from the release() method. The backends process the release() command immediately thus not requiring the audio backend to notify guest later. The notification happens in the device after the cmd is processed. This also removes the need of handling descriptors in the audio backend. This commit fixes the tests in pw. Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| LICENSE-APACHE | ||
| LICENSE-BSD-3-Clause | ||
| README.md | ||
| rustfmt.toml | ||
vhost-device-sound
Synopsis
vhost-device-sound --socket <SOCKET> --backend <BACKEND>
Description
A virtio-sound device using the vhost-user protocol.
Options
--socket <SOCKET>
vhost-user Unix domain socket path
--backend <BACKEND>
audio backend to be used [possible values: null, pipewire, alsa]
-h, --help
Print help
-V, --version
Print version
Examples
Launch the backend on the host machine:
host# vhost-device-sound --socket /tmp/snd.sock --backend null
With QEMU, you can add a virtio device that uses the backend's socket with the following flags:
-chardev socket,id=vsnd,path=/tmp/snd.sock \
-device vhost-user-snd-pci,chardev=vsnd,id=snd
License
This project is licensed under either of
- Apache License, Version 2.0
- BSD-3-Clause License