commit | 27d1a9006274f001306f0f4db6294fe83f6bccff | [log] [tgz] |
---|---|---|
author | Daniel Verkamp <dverkamp@chromium.org> | Fri Mar 31 13:38:08 2023 -0700 |
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 11 20:44:34 2023 +0000 |
tree | aff5e50a4812b4d073814fd1b39e0ddcc158cdcd | |
parent | fbb94bbfec55d0247eb7f4b4a172b3cadef85cd5 [diff] |
disk: use Seek::stream_position() convenience function Replace seek(SeekFrom::Current(0)) with the stream_position() helper function, which has been stable since Rust 1.51. BUG=b:276487055 TEST=tools/clippy # with rust 1.68 Change-Id: I21e9af65f6ad5ad8443dd1d2b95c08d3be91f174 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4390741 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com>
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.