mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-01 04:28:48 +00:00
b975546c3f
By default, the memory of a protected VM is inaccessible to the host and crosvm. Consequently, attempts to access guest memory are fatal and must be avoided in order for the guest to run. Mlock guest pages as they are faulted in for protected VMs, ensuring that the host doesn't try to age or swap them out as a result of memory pressure. Bug: b:204298056 Test: cargo test on x86 and arm64 Cc: Quentin Perret <qperret@google.com> Cc: Andrew Walbran <qwandor@google.com> Signed-off-by: Will Deacon <willdeacon@google.com> Change-Id: I618ec1e8b1136a47a8b3ef563e45bc41d75ab517 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3257689 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |