mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
de2c640f17
Introduce a very simple stub PCI device that can be added to the bus at a specified address with given PCI config parameters (vendor, device, etc.). This is useful for cases where we just require a device to be present during PCI enumeration. The case that motivates this is a vfio device passthrough configuration that passes only selected functions of a given device at the original addresses, but function 0 is not passed through. Absence of function 0 would be interpreted in enumeration as the entire device being absent (in accordance with the specification). Putting a stub device at function 0 fixes this. BUG=b:167947780 TEST=New unit test, boot minimal Linux image and verify enumerated PCI device. Change-Id: Iaedffe1c4ac2ad8f6ff6e00dfeebbbfeb5490551 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3245497 Auto-Submit: Mattias Nissler <mnissler@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Mattias Nissler <mnissler@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
plugin | ||
argument.rs | ||
crosvm.rs | ||
error.rs | ||
gdb.rs | ||
linux.rs | ||
main.rs | ||
panic_hook.rs |