Changeset 86070 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Sep 9, 2020 9:50:01 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 140287
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/PDMR0DevHlp.cpp
r85861 r86070 166 166 uint16_t const uDeviceId = PCIBDF_MAKE(pBus->iBus, pPciDev->uDevFn); 167 167 int rc = pIommu->pfnMemRead(pDevInsIommu, uDeviceId, GCPhys, cbRead, &GCPhysOut); 168 if (RT_FAILURE(rc)) 168 if (RT_SUCCESS(rc)) 169 GCPhys = GCPhysOut; 170 else 169 171 { 170 172 Log(("pdmR0DevHlp_PCIPhysRead: IOMMU translation failed. uDeviceId=%#x GCPhys=%#RGp cb=%u rc=%Rrc\n", uDeviceId, … … 218 220 uint16_t const uDeviceId = PCIBDF_MAKE(pBus->iBus, pPciDev->uDevFn); 219 221 int rc = pIommu->pfnMemWrite(pDevInsIommu, uDeviceId, GCPhys, cbWrite, &GCPhysOut); 220 if (RT_FAILURE(rc)) 222 if (RT_SUCCESS(rc)) 223 GCPhys = GCPhysOut; 224 else 221 225 { 222 226 Log(("pdmR0DevHlp_PCIPhysWrite: IOMMU translation failed. uDeviceId=%#x GCPhys=%#RGp cb=%u rc=%Rrc\n", uDeviceId, … … 1569 1573 ("pdmR0IoApicHlp_IommuMsiRemap: pfnMsiRemap invalid!\n"), VERR_INVALID_POINTER); 1570 1574 int rc = pIommu->pfnMsiRemap(pDevInsIommu, uDevId, pMsiIn, pMsiOut); 1571 if (RT_FAILURE(rc)) 1572 { 1573 Log(("pdmR0IoApicHlp_IommuMsiRemap: IOMMU MSI remap failed. uDevId=%#x pMsiIn=(%#RX64, %#RU32) rc=%Rrc\n", 1574 uDevId, pMsiIn->Addr.u64, pMsiIn->Data.u32, rc)); 1575 if (RT_SUCCESS(rc)) 1575 1576 return rc; 1576 } 1577 1578 Log(("pdmR0IoApicHlp_IommuMsiRemap: IOMMU MSI remap failed. uDevId=%#x pMsiIn=(%#RX64, %#RU32) rc=%Rrc\n", 1579 uDevId, pMsiIn->Addr.u64, pMsiIn->Data.u32, rc)); 1577 1580 } 1578 1581 #else 1579 1582 RT_NOREF(pDevIns, uDevId); 1583 #endif 1584 1580 1585 *pMsiOut = *pMsiIn; 1581 #endif1582 1586 return VINF_SUCCESS; 1583 1587 } -
trunk/src/VBox/VMM/VMMR0/PDMR0DevHlpTracing.cpp
r85126 r86070 327 327 uint16_t const uDeviceId = PCIBDF_MAKE(pBus->iBus, pPciDev->uDevFn); 328 328 int rc = pIommu->pfnMemRead(pDevInsIommu, uDeviceId, GCPhys, cbRead, &GCPhysOut); 329 if (RT_FAILURE(rc)) 329 if (RT_SUCCESS(rc)) 330 GCPhys = GCPhysOut; 331 else 330 332 { 331 333 Log(("pdmR0DevHlp_PCIPhysRead: IOMMU translation failed. uDeviceId=%#x GCPhys=%#RGp cb=%u rc=%Rrc\n", uDeviceId, … … 379 381 uint16_t const uDeviceId = PCIBDF_MAKE(pBus->iBus, pPciDev->uDevFn); 380 382 int rc = pIommu->pfnMemWrite(pDevInsIommu, uDeviceId, GCPhys, cbWrite, &GCPhysOut); 381 if (RT_FAILURE(rc)) 383 if (RT_SUCCESS(rc)) 384 GCPhys = GCPhysOut; 385 else 382 386 { 383 387 Log(("pdmR0DevHlp_PCIPhysWrite: IOMMU translation failed. uDeviceId=%#x GCPhys=%#RGp cb=%u rc=%Rrc\n", uDeviceId,
Note:
See TracChangeset
for help on using the changeset viewer.