mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
Move MemoryMapping's implementations of write/read_slice, write/read_obj and get_slice as well as the definition of the MappedRegion from the platform module into the base mmap module, since these definitions were strictly identical between Windows and Linux. This removes quite a bit of duplicated code. In the process, some tests need to be adapted in order to work with the common MemoryMapping type instead of the platform one, as the above mentioned methods become unavailable on the platform type. BUG=b:213153157 TEST=./tools/dev_container ./tools/run_tests --target=host TEST=./tools/dev_container ./tools/run_tests --target=host --build-target=mingw64 TEST=cargo test -p base --doc Change-Id: I20e6f47c3c4763b63eae707a527a084b229cd951 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3762970 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Alexandre Courbot <acourbot@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> |
||
---|---|---|
.. | ||
base_event_token_derive | ||
src | ||
.build_test_serial | ||
Cargo.toml |