crosvm/swap
Shintaro Kawamura bd8d3cc856 swap: open swap file before forking the monitor process
Opeing a file on the monitor process is blocking the upcoming minijail
migration. Open the swap file on the main process and pass the file
descriptor to the monitor process.

Using a single swap file and mmap different ranges of it for different
regions is efficient.

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

Change-Id: I4be150419d263ebe76ad00dae2cafce6e8660cbd
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4253294
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Shin Kawamura <kawasin@google.com>
Reviewed-by: David Stevens <stevensd@chromium.org>
2023-02-17 02:18:39 +00:00
..
src swap: open swap file before forking the monitor process 2023-02-17 02:18:39 +00:00
tests swap: open swap file before forking the monitor process 2023-02-17 02:18:39 +00:00
Cargo.toml swap: switch page fault logger with compiler feature flag 2023-02-15 07:06:22 +00:00