Add --name option to the run command

It is used to optionally set the name of the VM. It can be useful when
there are multiple crosvm processes running and we want to distinguish
them. This is especially a must in Android which uses process name for
the resource attribution purpose.

BUG=b/375094126
TEST=tools/dev_container tools/presubmit
Test: ditto

Change-Id: Id4af3b8f2b216ad3239a4467a0c30a4630d44a73
Reviewed-on:
https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5955889
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Jiyong Park <jiyong@google.com>
8 files changed
tree: 470c7d07127a6e4c0a2aa8aa2bcc95c5cb15a4b8
  1. .cargo/
  2. .config/
  3. .devcontainer/
  4. .github/
  5. .vscode/
  6. aarch64/
  7. acpi_tables/
  8. android_audio/
  9. arch/
  10. argh_helpers/
  11. audio_streams_conformance_test/
  12. audio_util/
  13. base/
  14. base_tokio/
  15. bit_field/
  16. broker_ipc/
  17. common/
  18. cros_async/
  19. cros_fdt/
  20. cros_tracing/
  21. cros_tracing_types/
  22. crosvm_cli/
  23. crosvm_control/
  24. crosvm_plugin/
  25. cuttlefish/
  26. devices/
  27. disk/
  28. docs/
  29. e2e_tests/
  30. ext2/
  31. fuse/
  32. fuzz/
  33. gpu_display/
  34. hypervisor/
  35. infra/
  36. io_uring/
  37. jail/
  38. kernel_cmdline/
  39. kernel_loader/
  40. kvm/
  41. kvm_sys/
  42. libcras_stub/
  43. linux_input_sys/
  44. logo/
  45. media/
  46. metrics/
  47. metrics_events/
  48. net_sys/
  49. net_util/
  50. patches/
  51. perfetto/
  52. power_monitor/
  53. prebuilts/
  54. proto_build_tools/
  55. protos/
  56. resources/
  57. riscv64/
  58. rutabaga_gfx/
  59. sandbox/
  60. serde_keyvalue/
  61. src/
  62. swap/
  63. system_api/
  64. tests/
  65. third_party/
  66. tools/
  67. tube_transporter/
  68. usb_sys/
  69. usb_util/
  70. vendor/
  71. vfio_sys/
  72. vhost/
  73. virtio_sys/
  74. vm_control/
  75. vm_memory/
  76. win_audio/
  77. win_util/
  78. x86_64/
  79. .dockerignore
  80. .envrc
  81. .gitattributes
  82. .gitignore
  83. .rustfmt.toml
  84. android-fork-stats.sh
  85. android-merge-1-setup.sh
  86. android-merge-2-cargo-embargo.sh
  87. Android.bp
  88. ARCHITECTURE.md
  89. Cargo.lock
  90. Cargo.toml
  91. cargo2android_defaults.bp
  92. cargo2android_module.bp.patch
  93. cargo_embargo.json
  94. CONTRIBUTING.md
  95. DIR_METADATA
  96. LICENSE
  97. METADATA
  98. mypy.ini
  99. OWNERS
  100. OWNERS.android
  101. OWNERS_COUNCIL
  102. PRESUBMIT.cfg
  103. PREUPLOAD.cfg
  104. pyproject.toml
  105. README.chromeos.md
  106. README.md
  107. rust-toolchain
  108. TEST_MAPPING
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