vm-virtio: Add IOMMU support to virtio-pmem

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:36:47 -07:00
committed by Samuel Ortiz
parent 392f1ec155
commit ee1899c6f6
2 changed files with 10 additions and 4 deletions

View File

@@ -789,7 +789,7 @@ impl DeviceManager {
*mem_slots += 1;
let virtio_pmem_device =
vm_virtio::Pmem::new(file, pmem_guest_addr, size as GuestUsize)
vm_virtio::Pmem::new(file, pmem_guest_addr, size as GuestUsize, false)
.map_err(DeviceManagerError::CreateVirtioPmem)?;
devices.push(Box::new(virtio_pmem_device) as Box<dyn vm_virtio::VirtioDevice>);