mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
5deee48856
One KVM_DEV_TYPE_VFIO instance may be created per VM. Currently this device is created from VfioContainer::init(), which makes it not able to create multiple vfio container. This patch creates the KVM_DEV_TYPE_VFIO virtual device before creating any VfioContainer or VfioDevice instances, and passes it into the VfioDevice constructor where it's actually used. In this way, it's possible to create multiple VFIO containers BUG=b:181736020 TEST=passthru multiple devices and create more than one VFIO containers Change-Id: I4b4e4941363efa91f2217af385f4f00eadd041c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2976053 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: David Stevens <stevensd@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |