commit | 64010dd1f749e7e4f9299665150bc4958638b210 | [log] [tgz] |
---|---|---|
author | Hikaru Nishida <hikalium@chromium.org> | Wed Feb 21 05:40:31 2024 |
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 12 03:50:47 2024 |
tree | 6d2a2c23fb18d59764c66a4076d243277282708b | |
parent | 455d2b916ff059498e7fcf824f373278da35429a [diff] |
Use PvClockState struct for storing serializable part at runtime Create and use PvClockState struct. Before this CL, PvClockSnapshot had been created by hand because of Arc is used for total_suspend_ns. However, it can be serialized when rc feature is enabled for serde crate so enable it and share the common struct to make the code clean. c.f. https://docs.rs/serde/latest/serde/trait.Serialize.html#impl-Serialize-for-Arc%3CT%3E BUG=None TEST=cargo build -F pvclock TEST=cargo test -p devices -F pvclock -- pvclock TEST=cargo test -p e2e_tests -- pvclock Change-Id: I28ef9a3a4b2bf757397ce0be5a0c36bc72bc1489 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5312036 Reviewed-by: David Stevens <stevensd@chromium.org> Commit-Queue: Hikaru Nishida <hikalium@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 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.