mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-01-30 13:44:47 +00:00
x86_64: increase size of MMIO range
VirtioPci uses 0x4000 bytes of MMIO space per device, so the existing allocation of 0x10000 was only enough for 4 devices; extend the MMIO region to allow for more devices. Change-Id: I0cc44edacc5f435510ab8ae9b38a925a0ee5d008 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1240654 Reviewed-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
parent
4a33cd5b18
commit
8102525958
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ impl X8664arch {
|
|||
let device_addr_start = Self::get_base_dev_pfn(mem_size) * sys_util::pagesize() as u64;
|
||||
AddressRanges::new()
|
||||
.add_io_addresses(0xc000, 0x10000)
|
||||
.add_mmio_addresses(MMIO_BASE, 0x10000)
|
||||
.add_mmio_addresses(MMIO_BASE, 0x100000)
|
||||
.add_device_addresses(device_addr_start, u64::max_value() - device_addr_start)
|
||||
.create_allocator(X86_64_IRQ_BASE, gpu_allocation).unwrap()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue