mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
ef084fa680
When allocating PCI addresses, prefer to allocate at the device granularity (e.g. 00:01.0, 00:02.0, 00:03.0, etc.), but when these are all allocated, start using functions (e.g. 00:01.1, 00:01.2, 00:01.3). This enables us to add more PCI devices (31 x 8 instead of just 31) while maintaining the existing PCI address allocation order for setups that do not require many devices. BUG=b:210795995 TEST=boot Linux with 32+ virtio-pci devices Change-Id: Ic06d3c9939dd78061a51e49b4f7ec457c81c7621 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3343182 Reviewed-by: Dmitry Torokhov <dtor@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |