vhost-device/crates
Yiyang Wu 500f617b24 vsock: Implement yaml config to support multiple vms setup
This commit aims to allow the vhost-user-vsock to
support local yaml configuration.

It introduces a new parameter '--config <CONFIG>' to allow user
to input a yaml configuration during startup and
uses config-rs to parse it.

Note that the configuration is currently made
conflicted to the original input parameters.

It introduces a new error -- ConfigParse inside the
crates/vsock/src/vhu_vsock.rs to support runtime error handling
and the new test_vsock_config_from_file() test.

It includes a new README.md with a parameter specification
and a config example in the Usage section.

It also introduces serde_deserialize(yaml) for VsockParam to let
config-rs directly pack the field specified in the array into the
VsockParam as suggested in config-rs. The serde crate is added to
crates/vsock/Cargo.toml correspondingly.

This commit also changes the original #[clap] into #[arg]
as suggested in clap-v4.

Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
2023-05-09 15:38:03 +05:30
..
gpio build(deps): bump clap from 4.1.14 to 4.2.4 2023-04-24 18:58:55 +05:30
i2c build(deps): bump clap from 4.1.14 to 4.2.4 2023-04-24 18:58:55 +05:30
rng build(deps): bump tempfile from 3.4.0 to 3.5.0 2023-05-08 10:50:37 -06:00
vsock vsock: Implement yaml config to support multiple vms setup 2023-05-09 15:38:03 +05:30