mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
afdb938bc8
In preparation for virtio IOMMU support, implement global variables IOMMU_CONTAINERS and NO_IOMMU_CONTAINER to hold the VFIO containers for VFIO devices with or without IOMMu enabled respectively. Also implement vfio_get_container()help create VFIO container based on the more complicated policies. - all VFIO devices without attaching to virtio IOMMU devices share one VFIO container. - for IOMMU enabled devices, one VFIO container manages all devices under one VFIO group. - we don't support multiple IOMMU groups set to one VFIO container. Currently don't see an user case for this. BUG=b:181736020 TEST=unit tests. Change-Id: I44d792cbc8ca9696c1da54c571aad1b94c7f665d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2976054 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: David Stevens <stevensd@chromium.org> Commit-Queue: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |