mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
496bcbe8bf
Some mmio should be reserved from mmio allocator such as direct mmio and pcie config mmio, and the space of mmio allocator is determined by arch and mmio-address-range parameter which are in different model, it is hard to exclude the reserved mmio at mmio allocator creation. So this commit add a reserve_mmio() function, so that different model could call it. If any part of the reserved mmio has been allocated, it returns Error, the caller should handler it. BUG=b:197877871 TEST=tools/presubmit Change-Id: If64542ee0cef7b8949e4bd01d27f6119aea4eea0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3605162 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |