mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
f67785e9e4
When pci bridige is created, caller should specify its primary bus number and secondary bus number. And supposing kernel won't modify them as the current pci device topology is simple enough, once guest modify them, warn message will be printed. The secondary bus number shouldn't be assigned to any other device, so this patch loop the bus number to find a free bus number. BUG=b:185084350 TEST=Boot a vm with passthrough device and check its function Change-Id: Iae72a0e0401a6e75c62582456b92792a1a36211a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2955569 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |