crosvm/vm_control
Daniel Verkamp 1fb95746de vm_control: use mmio_allocator_any() to find allocs
The vm_control requests that allocate memory from an existing PCI BAR
previously hard-coded MmioType::High, but we can decouple this from the
particular region by using `mmio_allocator_any()`, which will search
both the low and high MMIO regions. Only one will contain the specified
PCI address and BAR combination, so there should be no change in
behavior for the usual configuration where the PCI BAR will be allocated
from high MMIO.

BUG=b:178000549
TEST=Start crosvm with fs device and GPU enabled

Change-Id: Ia7c5633ee77be0721341d199b704a443c8a3e8d1
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3784343
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: David Stevens <stevensd@chromium.org>
2022-08-02 00:49:14 +00:00
..
src vm_control: use mmio_allocator_any() to find allocs 2022-08-02 00:49:14 +00:00
Cargo.toml crosvm: Make ballooning a compile time feature 2022-07-27 19:21:50 +00:00