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
+1 -1
View File
@@ -256,7 +256,7 @@ mod tests {
cid: CID,
mem: GuestMemoryMmap::new(&[(GuestAddress(0), MEM_SIZE)]).unwrap(),
mem_size: MEM_SIZE,
device: Vsock::new(CID, TestBackend::new()).unwrap(),
device: Vsock::new(CID, TestBackend::new(), false).unwrap(),
}
}