commit | 87ddd08405e8b360a8102ec54c7e8e5a687a7685 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Mon Sep 12 16:00:06 2022 -0700 |
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 13 17:14:44 2022 +0000 |
tree | c80cd91ba5cd3d4f3daae20b86e2c777f39471cc | |
parent | 5d7faa85423f8c695c232213f6a26f42afcb6624 [diff] |
hypervisor: change the last KvmVm::new argument to a struct We are going to need to start passing a new arch-dependent configuration parameter to KvmVm::new in addition to protection_type. Since we can't [cfg] a function argument, and to avoid churning the tests the next time we need another argument, let's create a hypervisor::Config struct and start passing protection_type that way. Bug: b:234779841 Change-Id: I42ce9438b064658ebb9732e78ee5c82dac2636b6 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3892140 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Peter Collingbourne <pcc@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.