mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
dbd241847b
Linux expects that PCI bars lie within a compatible bridge window, which are typically specified via _CRS objects in ACPI. This change adds an option to restrict mmio allocations (i.e. PCI bars) to within a specified set of ranges. The specified set of ranges is intersected with the default mmio allocation ranges generated by the crosvm arch code to produce the final mmio allocation ranges. This change is required to remove pci=nocrs from the CrOS guest's kernel command line flags. Removing that flag is a prerequisite for enabling virtio-iommu, since without the configuration information from ACPI, the kernel reserves all IOVAs in iova_reserve_pci_windows. BUG=b:181736020 TEST=boot manatee w/o pci=nocrs kernel cmdline flag TEST=tast run trogdor|hatch arc.Boot.vm Change-Id: I0a096420c5d5ef56dd76021951968e264ce40f42 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3499900 Reviewed-by: Junichi Uekawa <uekawa@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |