mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
pci, vmm: vfio: Report device path on host with DMA map/unmap errors
In addition to the BDF information on the guest, reporting the device path of the VFIO device on the host is more useful when it comes to debug DMA map/unmap errors particularly ones caused by failing hardware on the host. Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
@@ -3431,6 +3431,7 @@ impl DeviceManager {
|
||||
memory_manager.lock().unwrap().memory_slot_allocator(),
|
||||
vm_migration::snapshot_from_id(self.snapshot.as_ref(), vfio_name.as_str()),
|
||||
device_cfg.x_nv_gpudirect_clique,
|
||||
device_cfg.path.clone(),
|
||||
)
|
||||
.map_err(DeviceManagerError::VfioPciCreate)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user