From b08fde5928f43109c2fc5b6ff75b9a3e1778cfe2 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Wed, 29 Apr 2020 17:48:23 +0200 Subject: [PATCH] vmm: Fix virtio-rng creation with virtual IOMMU If the virtio-rng device is supposed to be placed behind the virtual IOMMU, this must be explicitly propagated through the code. Signed-off-by: Sebastien Boeuf --- vmm/src/device_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index a330e9eb2..0016d492d 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -1421,7 +1421,7 @@ impl DeviceManager { )); devices.push(( Arc::clone(&virtio_rng_device) as VirtioDeviceArc, - false, + rng_config.iommu, None, ));