devices: vhost: user: convert console and block to use run_device

Since these devices implement VhostUserDevice, we can use the listener's
run_device method instead of doing the conversion to a VhostUserBackend
ourselves.

BUG=b:217480043
TEST=console and block devices can be used as vhost-user devices.

Change-Id: I5404cffca17f0e8c10a910d7342b300c909489c3
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4222837
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Ryuichiro Chiba <chibar@chromium.org>
2 files changed
tree: 22d4a01d44253042512755c962844010f41ee794
  1. .cargo/
  2. .config/
  3. .devcontainer/
  4. .github/
  5. .vscode/
  6. aarch64/
  7. acpi_tables/
  8. anti_tamper/
  9. arch/
  10. argh_helpers/
  11. base/
  12. bit_field/
  13. broker_ipc/
  14. common/
  15. crash_report/
  16. cros_async/
  17. cros_fdt/
  18. cros_tracing/
  19. crosvm-fuzz/
  20. crosvm_cli/
  21. crosvm_control/
  22. crosvm_plugin/
  23. devices/
  24. disk/
  25. docs/
  26. e2e_tests/
  27. fuse/
  28. gpu_display/
  29. hypervisor/
  30. infra/
  31. io_uring/
  32. kernel_cmdline/
  33. kernel_loader/
  34. kvm/
  35. kvm_sys/
  36. libcras_stub/
  37. linux_input_sys/
  38. logo/
  39. media/
  40. metrics/
  41. net_sys/
  42. net_util/
  43. power_monitor/
  44. prebuilts/
  45. proto_build_tools/
  46. protos/
  47. qcow_utils/
  48. resources/
  49. rutabaga_gfx/
  50. sandbox/
  51. seccomp/
  52. serde_keyvalue/
  53. src/
  54. swap/
  55. system_api/
  56. tests/
  57. third_party/
  58. tools/
  59. tpm2/
  60. tpm2-sys/
  61. tube_transporter/
  62. usb_sys/
  63. usb_util/
  64. vfio_sys/
  65. vhost/
  66. virtio_sys/
  67. vm_control/
  68. vm_memory/
  69. win_audio/
  70. win_util/
  71. x86_64/
  72. .dockerignore
  73. .gitignore
  74. .gitmodules
  75. .rustfmt.toml
  76. ARCHITECTURE.md
  77. build.rs
  78. Cargo.lock
  79. Cargo.toml
  80. CONTRIBUTING.md
  81. DIR_METADATA
  82. LICENSE
  83. mypy.ini
  84. OWNERS
  85. OWNERS_COUNCIL
  86. PRESUBMIT.cfg
  87. pyproject.toml
  88. README.chromeos.md
  89. README.md
  90. rust-toolchain
README.md

crosvm - The ChromeOS Virtual Machine Monitor

crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the ChromeOS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.

crosvm is currently used to run Linux/Android guests on ChromeOS devices.

Logo