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:
Bo Chen
2025-02-20 09:37:12 -08:00
committed by Rob Bradford
parent 396aba7a52
commit 297b41d615
2 changed files with 14 additions and 7 deletions

View File

@@ -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)?;