mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-05 17:03:21 +00:00
Rename vhost-user-sound to vhost-device-sound
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
d40c707f2f
commit
de1c308c62
40
Cargo.lock
generated
40
Cargo.lock
generated
@ -1446,6 +1446,26 @@ dependencies = [
|
||||
"vmm-sys-util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "vhost-device-sound"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"alsa",
|
||||
"clap",
|
||||
"env_logger",
|
||||
"log",
|
||||
"pipewire",
|
||||
"rstest",
|
||||
"serial_test",
|
||||
"thiserror",
|
||||
"vhost 0.6.1",
|
||||
"vhost-user-backend 0.8.0",
|
||||
"virtio-bindings 0.2.1",
|
||||
"virtio-queue 0.7.1",
|
||||
"vm-memory 0.10.0",
|
||||
"vmm-sys-util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "vhost-device-vsock"
|
||||
version = "0.1.0"
|
||||
@ -1499,26 +1519,6 @@ dependencies = [
|
||||
"vmm-sys-util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "vhost-user-sound"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"alsa",
|
||||
"clap",
|
||||
"env_logger",
|
||||
"log",
|
||||
"pipewire",
|
||||
"rstest",
|
||||
"serial_test",
|
||||
"thiserror",
|
||||
"vhost 0.6.1",
|
||||
"vhost-user-backend 0.8.0",
|
||||
"virtio-bindings 0.2.1",
|
||||
"virtio-queue 0.7.1",
|
||||
"vm-memory 0.10.0",
|
||||
"vmm-sys-util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "virtio-bindings"
|
||||
version = "0.1.0"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "vhost-user-sound"
|
||||
name = "vhost-device-sound"
|
||||
version = "0.1.0"
|
||||
authors = ["Stefano Garzarella <sgarzare@redhat.com>", "Manos Pitsidianakis <manos.pitsidianakis@linaro.org>"]
|
||||
description = "A virtio-sound device using the vhost-user protocol."
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
# vhost-user-sound
|
||||
# vhost-device-sound
|
||||
|
||||
<!--
|
||||
generated with help2man target/debug/vhost-user-sound |mandoc
|
||||
generated with help2man target/debug/vhost-device-sound |mandoc
|
||||
-->
|
||||
## Synopsis
|
||||
vhost-user-sound --socket <SOCKET> --backend <BACKEND>
|
||||
vhost-device-sound --socket <SOCKET> --backend <BACKEND>
|
||||
|
||||
## Description
|
||||
A virtio-sound device using the vhost-user protocol.
|
||||
@ -30,7 +30,7 @@ generated with help2man target/debug/vhost-user-sound |mandoc
|
||||
Launch the backend on the host machine:
|
||||
|
||||
```shell
|
||||
host# vhost-user-sound --socket /tmp/snd.sock --backend null
|
||||
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:
|
||||
|
||||
@ -281,14 +281,14 @@ impl Drop for IOMessage {
|
||||
}
|
||||
|
||||
/// This is the public API through which an external program starts the
|
||||
/// vhost-user-sound backend server.
|
||||
/// vhost-device-sound backend server.
|
||||
pub fn start_backend_server(config: SoundConfig) {
|
||||
log::trace!("Using config {:?}", &config);
|
||||
let listener = Listener::new(config.get_socket_path(), true).unwrap();
|
||||
let backend = Arc::new(VhostUserSoundBackend::new(config).unwrap());
|
||||
|
||||
let mut daemon = VhostUserDaemon::new(
|
||||
String::from("vhost-user-sound"),
|
||||
String::from("vhost-device-sound"),
|
||||
backend.clone(),
|
||||
GuestMemoryAtomic::new(GuestMemoryMmap::new()),
|
||||
)
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
use std::convert::TryFrom;
|
||||
|
||||
use clap::Parser;
|
||||
use vhost_user_sound::{start_backend_server, BackendType, Error, Result, SoundConfig};
|
||||
use vhost_device_sound::{start_backend_server, BackendType, Error, Result, SoundConfig};
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[clap(version, about, long_about = None)]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user