crosvm/src
Zide Chen 5deee48856 devices: vfio: create KVM_DEV_TYPE_VFIO device from linux.rs
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>
2021-07-09 05:49:24 +00:00
..
plugin vcpu: Fix import for later protobuf releases. 2021-06-24 13:31:48 +00:00
argument.rs
crosvm.rs crosvm: deprecate wayland-dmabuf flag. 2021-07-08 02:12:33 +00:00
gdb.rs tree-wide: replace single-leaf match with if let 2021-05-25 21:50:46 +00:00
linux.rs devices: vfio: create KVM_DEV_TYPE_VFIO device from linux.rs 2021-07-09 05:49:24 +00:00
main.rs crosvm: deprecate wayland-dmabuf flag. 2021-07-08 02:12:33 +00:00
panic_hook.rs