commit | 397b103a64a3dca000a0e1fa27c6867cf01bdcb8 | [log] [tgz] |
---|---|---|
author | Shintaro Kawamura <kawasin@google.com> | Mon Jan 30 16:06:27 2023 +0900 |
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 01 01:05:25 2023 +0000 |
tree | 0ea071551182424dbbec3a2bfc57f39d7a58c34b | |
parent | b5a9833d97b3b0f6a2030aaa5bbee36240ba13ad [diff] |
swap: introduce Error type for userfaultfd This is a refactoring to use original Error type instead of UffdError from userfaultfd crate. This helps /dev/userfaultfd support which returns std::io::Error on opening userfaultfd. This contains a minor change to move register/unregister helpers to userfaultfd.rs BUG=b:266642532 TEST=cargo test -p swap Change-Id: I24079999b018c0f1683fd7b4ee0f97153bd8914d Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4196761 Reviewed-by: David Stevens <stevensd@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Shin Kawamura <kawasin@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.