diff --git a/virtio-devices/src/iommu.rs b/virtio-devices/src/iommu.rs index 25f513fde..75a3daa5d 100644 --- a/virtio-devices/src/iommu.rs +++ b/virtio-devices/src/iommu.rs @@ -702,8 +702,10 @@ impl DmaRemapping for IommuMapping { } } - debug!("Into same addr..."); - Ok(addr) + Err(io::Error::new( + io::ErrorKind::Other, + format!("failed to translate GVA addr 0x{:x}", addr), + )) } fn translate_gpa(&self, id: u32, addr: u64) -> std::result::Result { @@ -720,8 +722,10 @@ impl DmaRemapping for IommuMapping { } } - debug!("Into same addr..."); - Ok(addr) + Err(io::Error::new( + io::ErrorKind::Other, + format!("failed to translate GPA addr 0x{:x}", addr), + )) } }