vmm: Fix virtio-console creation with virtual IOMMU

If the virtio-console device is supposed to be placed behind the virtual
IOMMU, this must be explicitly propagated through the code.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2020-04-29 18:14:48 +02:00 committed by Rob Bradford
parent b08fde5928
commit d71d52e9b0

View File

@ -1097,7 +1097,7 @@ impl DeviceManager {
.map_err(DeviceManagerError::CreateVirtioConsole)?;
virtio_devices.push((
Arc::new(Mutex::new(virtio_console_device)) as VirtioDeviceArc,
false,
console_config.iommu,
None,
));
Some(console_input)