crosvm/common/data_model/src
Shintaro Kawamura 018e8caf99 swap: add trim command
"crosvm swap trim <socket_path>" command for trimming 2 types of pages
in the staging memory before swapping out to reduce the disk I/O.

* clean pages
* zero pages

The doc comment of TrimContext explains the page types.

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

Change-Id: I5c33149f7d0bfd712f07fd11eb9aa07c1a8b0e7a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4357224
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Shin Kawamura <kawasin@google.com>
Reviewed-by: David Stevens <stevensd@chromium.org>
2023-03-29 01:22:02 +00:00
..
sys data_model: fix IoBufMut references in comments 2023-02-22 19:36:07 +00:00
endian.rs crosvm: Partially convert DataInit to zerocopy (6/n) 2023-02-10 01:52:24 +00:00
flexible_array.rs Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
lib.rs tree-wide: apply nightly rustfmt 2023-03-27 21:30:45 +00:00
sys.rs Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
volatile_memory.rs swap: add trim command 2023-03-29 01:22:02 +00:00