mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
VFIO-PCI device has its own region naming but eventually it starts from 0 (as well as it suppose for others VFIO device types) so simply use 0 instead of VFIO_PCI_BAR0_REGION_INDEX. At the same time move PCI-specific checks to helper function for clarity. BUG=b:185504618 TEST=manatee PCI device passthrough boots/works Change-Id: I404a9585016d230c48a6db7248172d2381a0a3e1 Signed-off-by: Tomasz Nowicki <tn@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2961213 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Tomasz Nowicki <tnowicki@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |