crosvm/swap
Shintaro Kawamura 37f8a7da56 swap: use named memfd for staging memory
ARCVM tracks its memory usage by monitoring the process group shared
memory usage `Platform.Memory.ARC.Shmem`. The staging memory should be
a shared memory not a private anonymous memory.

The staging memory in Region originally does not need to be `Option`
because leaked memory on the staging memory is removed when vmm-swap is
disabled. Rather it has introduced useless complexity to the codebase.

BUG=b:269682102
TEST=cargo test -p swap

Change-Id: I3f032340753b14519dc7dcd76690a7b4b248c1f4
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4332624
Reviewed-by: David Stevens <stevensd@chromium.org>
Commit-Queue: Shin Kawamura <kawasin@google.com>
2023-03-22 06:42:35 +00:00
..
src swap: use named memfd for staging memory 2023-03-22 06:42:35 +00:00
tests swap: use named memfd for staging memory 2023-03-22 06:42:35 +00:00
Cargo.toml swap: use create_sandbox_minijail for the monitor process 2023-03-02 00:42:35 +00:00