mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Samuel Ortiz
parent
9ab00dcb75
commit
6566c739e1
@@ -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>);
|
||||
|
||||
Reference in New Issue
Block a user