VHOST-DEVICE-SOUND(1)

πŸ“¦ version 0.3.0, in fedora 43, fedora 44

πŸ’– vhost-device-sound β€” the manual page, bestie edition πŸ’–

okay so you're looking at the vhost-device-sound(1) page from the rust-vmm/vhost-device fam. it's giving "vhost-user backend for a VirtIO SOUND device" and honestly? iconic. let's get into it πŸŽ€


✨ NAME ✨

vhost-device-sound β€” a vhost-user backend for a VirtIO SOUND device 🎡


🌸 SYNOPSIS 🌸

vhost-device-sound -s|--socket-path path [-d|--device spec]
vhost-device-sound [-h|--help]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically this program is a vhost-user backend for a VirtIO SOUND device. it hands out SOUND access to all sorts of entities on the host β€” and no, not just the ones that are out here providing an SOUND interface themselves. we're generous like that πŸ’…

it's been tested with QEMU's -device vhost-user-sound-pci, but fr fr it should work with any virtual machine monitor (VMM) that supports vhost-user. see the EXAMPLES section down below for the receipts ✨

πŸ‘‘ Options

  • -h, --help β€” prints help. that's it, that's the vibe.
  • -s, --socket=PATH β€” where the vhost-user Unix domain sockets live πŸ“
  • -s, --socket=PATH β€” audio backend to be used [null, pipewire, alsa] 🎧
not me noticing -s, --socket=PATH shows up twice in the original β€” we're keeping both, no cap, facts are facts πŸ™ˆ

🧚 EXAMPLES 🧚

the daemon should be started first, bestie. order matters:

host# vhost-device-sound --socket /tmp/snd.sock --backend null

then the QEMU invocation needs to create a chardev socket that the device can use to communicate, plus share the guest's memory over a memfd:

host# qemu-system \
   -chardev socket,path=/tmp/snd.sock,id=vsnd \
   -device vhost-user-snd-pci,chardev=vsnd,id=vsnd \
   -machine YOUR-MACHINE-OPTIONS,memory-backend=mem \
   -m 4096 \
   -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on \
   ...

🌈 ENVIRONMENT 🌈

  • RUST_LOG β€” logging level. set it to debug for maximum output πŸ”₯ maximum. output. that's the main character setting.

πŸ’€ BUGS πŸ’€

see GitHub Issues: <https://github.com/rust-vmm/vhost-device/issues> β€” go be a helpful lil detective πŸ•΅οΈβ™€οΈ


🫢 AUTHORS 🫢

  • Dorinda Bassey <dbassey@redhat.com>
  • Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
  • Manos Pitsidianakis <manos@pitsidianak.is>

⭐ SEE ALSO ⭐


and that's the whole page, bestie πŸ’– this was Version 0.1.0 of vhost-device-sound(1) from the rust-vmm/vhost-device girlies β€” slay, stay hydrated, and may your sockets always be connected πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from
  • fedora 43: vhost-device-sound 0.2.0-10.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Apache-2.0 AND (Apache-2.0 OR BSD-3-Clause) AND (Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (Unlicense OR MIT)
  • fedora 43: vhost-device-sound 0.3.0-2.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Apache-2.0 AND (Apache-2.0 OR BSD-3-Clause) AND (Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (Unlicense OR MIT)
  • fedora 44: vhost-device-sound 0.3.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Apache-2.0 AND (Apache-2.0 OR BSD-3-Clause) AND (Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (Unlicense OR MIT)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms