mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
Use our new serde_keyvalue crate to annotate the VhostVsockDeviceParameter config structure and allow us to create a vsock device configuration from a key-values string. Add tests to make sure parsing happens as expected. Currently the vsock device is configured using the `--cid`, `--vhost-vsock-fd` and `--vhost-vsock-device` command-line options. While this CL introduces a way to set the vsock device up with a single option (an ability we will eventually use), we retain the existing ones for compatibility reasons. BUG=b:218223240 TEST=cargo test -p devices vsock::tests::params TEST=crosvm run with --cid parameter and check that virtio socket device is present in the output of `lspci`. Change-Id: Id58beee57f2ada3d2c0d353a430b038bb6c7eef3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3473709 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: Dennis Kempin <denniskempin@google.com> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |