mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
Currently, VfioPciDevice always use the same BDF as the device's BDF in the host OS. However, in certain applications (e.g. Borealis), it is desired to map the device to a different BDF. This patch introduces a new parameter to `vfio` so that user could set the device's BDF to a desired address. BUG=b:208545409 TEST=Boot Borealis with `--vfio=/path/to/dGPU,guest-address=00:11.0` and confirmed that the dGPU is at 00:11.0 in the guest OS. Change-Id: I7ee9e9a7f74e3541e74f89d452f9aad45302eeb4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3535461 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Auto-Submit: Victor Ding <victording@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Victor Ding <victording@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |