mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
76148ae982
The existing mem_below_4g/mem_above_4g calculations did not match the actual layout used when populating guest memory. Rather than duplicating the logic in setup_io_bus to calculate the values reported in CMOS, just reuse the arch_memory_regions function and count the bytes in the regions below and above the 4G boundary. BUG=b:168740534 BUG=b:168628037 TEST=Verify u-boot reports 4 GiB with crosvm --mem=4096 Change-Id: I32a70f19848595eaefd2e31c9f31a260d6ce4453 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2422129 Reviewed-by: Dylan Reid <dgreid@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |