mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 01:16:50 +00:00
bb30f23ce0
Add to the `trait Vm` 2 new methods that allow more control for hypervisors when dealing with memory (un)mapping. This is intended for dealing with expanding and releasing memory from `virtio-balloon`. For windows based hypervisors, balloon expansion triggers OS interaction with reclaiming memory pages, which is automatically managed in KVM. Similarly, a balloon deflation will cause OS interaction for releasing memory back to the OS. Update the error return for `remove_mapping` when `madvise` call fails. BUG=b:213150327 TEST=compiled. Change-Id: I6ac04d27ac06ea97825f4d22e36543b5dde5b032 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3640424 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Vaibhav Nagarnaik <vnagarnaik@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |