Changeset 86070 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Sep 9, 2020 9:50:01 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 140287
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r85007 r86070 1834 1834 uint16_t const uDevId = PCIBDF_MAKE(pBus->iBus, pPciDev->uDevFn); 1835 1835 int rc = pIommu->pfnMemRead(pDevInsIommu, uDevId, GCPhys, cbRead, &GCPhysOut); 1836 if (RT_FAILURE(rc)) 1836 if (RT_SUCCESS(rc)) 1837 GCPhys = GCPhysOut; 1838 else 1837 1839 { 1838 1840 Log(("pdmR3DevHlp_PCIPhysRead: IOMMU translation failed. uDevId=%#x GCPhys=%#RGp cb=%u rc=%Rrc\n", uDevId, GCPhys, … … 1886 1888 uint16_t const uDevId = PCIBDF_MAKE(pBus->iBus, pPciDev->uDevFn); 1887 1889 int rc = pIommu->pfnMemWrite(pDevInsIommu, uDevId, GCPhys, cbWrite, &GCPhysOut); 1888 if (RT_FAILURE(rc)) 1890 if (RT_SUCCESS(rc)) 1891 GCPhys = GCPhysOut; 1892 else 1889 1893 { 1890 1894 Log(("pdmR3DevHlp_PCIPhysRead: IOMMU translation failed. uDevId=%#x GCPhys=%#RGp cb=%u rc=%Rrc\n", uDevId, GCPhys, -
trunk/src/VBox/VMM/VMMR3/PDMDevHlpTracing.cpp
r85126 r86070 433 433 uint16_t const uDevId = PCIBDF_MAKE(pBus->iBus, pPciDev->uDevFn); 434 434 int rc = pIommu->pfnMemRead(pDevInsIommu, uDevId, GCPhys, cbRead, &GCPhysOut); 435 if (RT_FAILURE(rc)) 435 if (RT_SUCCESS(rc)) 436 GCPhys = GCPhysOut; 437 else 436 438 { 437 439 Log(("pdmR3DevHlp_PCIPhysRead: IOMMU translation failed. uDevId=%#x GCPhys=%#RGp cb=%u rc=%Rrc\n", uDevId, GCPhys, … … 439 441 return rc; 440 442 } 443 444 GCPhys = GCPhysOut; 441 445 } 442 446 #endif … … 485 489 uint16_t const uDevId = PCIBDF_MAKE(pBus->iBus, pPciDev->uDevFn); 486 490 int rc = pIommu->pfnMemWrite(pDevInsIommu, uDevId, GCPhys, cbWrite, &GCPhysOut); 487 if (RT_FAILURE(rc)) 491 if (RT_SUCCESS(rc)) 492 GCPhys = GCPhysOut; 493 else 488 494 { 489 495 Log(("pdmR3DevHlp_PCIPhysRead: IOMMU translation failed. uDevId=%#x GCPhys=%#RGp cb=%u rc=%Rrc\n", uDevId, GCPhys, … … 491 497 return rc; 492 498 } 499 500 GCPhys = GCPhysOut; 493 501 } 494 502 #endif -
trunk/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp
r84826 r86070 157 157 { 158 158 int rc = pIommu->pfnMsiRemap(pDevInsIommu, uDevId, pMsiIn, pMsiOut); 159 if (RT_FAILURE(rc)) 160 { 161 Log(("pdmR3IoApicHlp_IommuRemapMsi: IOMMU MSI remap failed. uDevId=%#x pMsiIn=(%#RX64, %#RU32) rc=%Rrc\n", 162 uDevId, pMsiIn->Addr.u64, pMsiIn->Data.u32, rc)); 159 if (RT_SUCCESS(rc)) 163 160 return rc; 164 } 161 162 Log(("pdmR3IoApicHlp_IommuRemapMsi: IOMMU MSI remap failed. uDevId=%#x pMsiIn=(%#RX64, %#RU32) rc=%Rrc\n", 163 uDevId, pMsiIn->Addr.u64, pMsiIn->Data.u32, rc)); 164 return rc; 165 165 } 166 166 #else 167 167 RT_NOREF(pDevIns, uDevId); 168 #endif 168 169 *pMsiOut = *pMsiIn; 169 #endif170 170 return VINF_SUCCESS; 171 171 }
Note:
See TracChangeset
for help on using the changeset viewer.