crosvm/swap
Shintaro Kawamura 397b103a64 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>
2023-02-01 01:05:25 +00:00
..
src swap: introduce Error type for userfaultfd 2023-02-01 01:05:25 +00:00
tests swap: introduce Error type for userfaultfd 2023-02-01 01:05:25 +00:00
Cargo.toml swap: move guest memory to staging memory on multi thread 2023-01-23 04:52:02 +00:00