| commit | 172dfd31aa0a3b4455f4866f623859a628be220f | [log] [tgz] |
|---|---|---|
| author | Alexandre Courbot <acourbot@chromium.org> | Thu Mar 24 16:38:49 2022 +0900 |
| committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 17 04:35:08 2022 +0000 |
| tree | dcbc50b9901a960b9137786f43785d9c086f5936 | |
| parent | db6ea0adafee62c193b6d5c9d42fd137cd362b8f [diff] |
crosvm/linux: stop using Config in device_helpers The device and jail creation helpers should be reusable in other contexts than `crosvm run` - e.g. they would be helpful to run a list of sandboxed vhost-user devices without a VMM. However the `Config` structure currently represents an entire VM config, which makes these helpers unusable outside of `crosvm run`, and also expose individual devices to much more configuration data than they need. Fix this by only passing the needed configuration data from the `Config` struct, which for most devices consists of the protection type and jail configuration. BUG=b:217480043 TEST=cargo build Change-Id: If1f6dcb0d6d82a4e73d25a45b367da2364642e6f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3546582 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
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 Chrome OS 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 Chrome OS devices.