vm-virtio: Add IOMMU support to virtio-vsock

Adding virtio feature VIRTIO_F_IOMMU_PLATFORM when explicitly asked by
the user. The need for this feature is to be able to attach the virtio
device to a virtual IOMMU.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-10-04 10:47:13 -07:00
committed by Samuel Ortiz
parent 9ab00dcb75
commit 6566c739e1
3 changed files with 9 additions and 5 deletions

View File

@@ -860,7 +860,7 @@ impl DeviceManager {
vm_virtio::vsock::VsockUnixBackend::new(vsock_cfg.cid, socket_path.to_string())
.map_err(DeviceManagerError::CreateVsockBackend)?;
let vsock_device = vm_virtio::Vsock::new(vsock_cfg.cid, backend)
let vsock_device = vm_virtio::Vsock::new(vsock_cfg.cid, backend, false)
.map_err(DeviceManagerError::CreateVirtioVsock)?;
devices.push(Box::new(vsock_device) as Box<dyn vm_virtio::VirtioDevice>);