crosvm/docs/book
Daniel Verkamp 5172482b39 crosvm: add generic --vhost-user frontend option
Deprecate the existing --vhost-user-* device-specific frontend options
and replace them with a single --vhost-user option that takes the device
type as one of its arguments.

This simplifies the device setup code significantly; there is now a
single list of vhost_user frontend devices that can be created in one
loop instead of scattering device-type-specific creation all over the
create_virtio_devices() function.

The DeviceType names are normalized for this new --vhost-user option as
well - when relevant, they use the full name rather than abbreviating it
inconsistently (for example, "blk" is now known as "block", which
matches the option used with `crosvm devices`). A few special cases are
handled with serde renames (such as "p9" -> "9p"), but all other device
types use the default serde kebab-case naming.

BUG=b:262291811
TEST=connect to `crosvm devices` and virtiofsd with --vhost-user

Change-Id: I75e9442f73af122ccfda9731331cde5c238b88fb
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5030974
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
2023-11-21 19:14:01 +00:00
..
src crosvm: add generic --vhost-user frontend option 2023-11-21 19:14:01 +00:00
.gitignore book: add initial book using mdbook 2021-07-01 16:28:29 +00:00
book.toml docs: book: move testing docs into a directory 2023-07-06 19:32:58 +00:00
mermaid-init.js book: add mermaid-js support 2021-07-01 16:28:32 +00:00
mermaid.min.js book: add mermaid-js support 2021-07-01 16:28:32 +00:00