mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
The get_high_mmio_base_size() function duplicates and hard-codes the math from get_platform_mmio_base_size(). Since these are both only called in one location now, pull them into get_resource_allocator() so the plat_mmio variables can be used instead of duplicating the math. Also reorder the SystemAllocator::builder() calls so that they are in the same order as the layout of the regions in memory; this makes no functional difference, but it is less confusing to read. BUG=b:210727578 TEST=Boot crosvm on trogdor64 Change-Id: I1238e5b1d412e41d0b4b9be5b93b59fec6598734 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3373451 Reviewed-by: Dmitry Torokhov <dtor@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_skip | ||
Cargo.toml |