crosvm/swap
Shintaro Kawamura b9bf0798fd swap: punch a hole to swap file if the pages are removed
If the pages on the guest memory MADV_REMOVEed, the pages are likely not
be accessed for a long time. Keeping those pages is not good use of
resources.

This also fix the minor bug that staging memory is not cleared by
MADV_REMOVE.

BUG=b:269981962
BUG=b:269531558
TEST=cargo test -p swap

Change-Id: Ic43e21104becd8a1dfca32a2cd0733bf40154fa1
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4269719
Reviewed-by: David Stevens <stevensd@chromium.org>
Commit-Queue: Shin Kawamura <kawasin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2023-02-22 01:53:38 +00:00
..
src swap: punch a hole to swap file if the pages are removed 2023-02-22 01:53:38 +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