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:
Daniel Verkamp 2018-09-14 17:04:23 -07:00 committed by chrome-bot
parent 4a33cd5b18
commit 8102525958

View file

@ -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()
}