vmm: Fix pmem device creation

The parameters regarding the attachment to the virtio-iommu device was
not propagated correclty, and any modification to the configuration was
not stored back into it.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2020-04-27 10:57:39 +02:00 committed by Rob Bradford
parent 3012975c17
commit 7e0ab6b56d

View File

@ -1621,7 +1621,7 @@ impl DeviceManager {
Ok((
Arc::clone(&virtio_pmem_device) as VirtioDeviceArc,
false,
pmem_cfg.iommu,
pmem_cfg.id.clone(),
))
}
@ -1637,6 +1637,7 @@ impl DeviceManager {
devices.push(self.make_virtio_pmem_device(pmem_cfg)?);
}
}
self.config.lock().unwrap().pmem = pmem_devices;
Ok(devices)
}