mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 20:45:21 +00:00
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:
parent
3012975c17
commit
7e0ab6b56d
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user