Changeset 84809 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jun 12, 2020 6:49:41 AM (5 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/PDMR0DevHlp.cpp
r84755 r84809 158 158 && pDevInsIommu != pDevIns) 159 159 { 160 size_t const idxBus = pPciDev->Int.s.idxPdmBus; 161 Assert(idxBus < RT_ELEMENTS(pGVM->pdmr0.s.aPciBuses)); 162 PPDMPCIBUSR0 pBus = &pGVM->pdmr0.s.aPciBuses[idxBus]; 163 160 164 RTGCPHYS GCPhysOut; 161 uint16_t const uDeviceId = VBOX_PCI_BUSDEVFN_MAKE(p PciDev->Int.s.idxPdmBus, pPciDev->uDevFn);165 uint16_t const uDeviceId = VBOX_PCI_BUSDEVFN_MAKE(pBus->iBus, pPciDev->uDevFn); 162 166 int rc = pIommu->pfnMemRead(pDevInsIommu, uDeviceId, GCPhys, cbRead, &GCPhysOut); 163 167 if (RT_FAILURE(rc)) … … 206 210 && pDevInsIommu != pDevIns) 207 211 { 212 size_t const idxBus = pPciDev->Int.s.idxPdmBus; 213 Assert(idxBus < RT_ELEMENTS(pGVM->pdmr0.s.aPciBuses)); 214 PPDMPCIBUSR0 pBus = &pGVM->pdmr0.s.aPciBuses[idxBus]; 215 208 216 RTGCPHYS GCPhysOut; 209 uint16_t const uDeviceId = VBOX_PCI_BUSDEVFN_MAKE(p PciDev->Int.s.idxPdmBus, pPciDev->uDevFn);217 uint16_t const uDeviceId = VBOX_PCI_BUSDEVFN_MAKE(pBus->iBus, pPciDev->uDevFn); 210 218 int rc = pIommu->pfnMemWrite(pDevInsIommu, uDeviceId, GCPhys, cbWrite, &GCPhysOut); 211 219 if (RT_FAILURE(rc)) -
trunk/src/VBox/VMM/VMMR0/PDMR0DevHlpTracing.cpp
r84715 r84809 317 317 && pDevInsIommu != pDevIns) 318 318 { 319 size_t const idxBus = pPciDev->Int.s.idxPdmBus; 320 Assert(idxBus < RT_ELEMENTS(pGVM->pdmr0.s.aPciBuses)); 321 PPDMPCIBUSR0 pBus = &pGVM->pdmr0.s.aPciBuses[idxBus]; 322 319 323 RTGCPHYS GCPhysOut; 320 uint16_t const uDeviceId = VBOX_PCI_BUSDEVFN_MAKE(p PciDev->Int.s.idxPdmBus, pPciDev->uDevFn);324 uint16_t const uDeviceId = VBOX_PCI_BUSDEVFN_MAKE(pBus->iBus, pPciDev->uDevFn); 321 325 int rc = pIommu->pfnMemRead(pDevInsIommu, uDeviceId, GCPhys, cbRead, &GCPhysOut); 322 326 if (RT_FAILURE(rc)) … … 365 369 && pDevInsIommu != pDevIns) 366 370 { 371 size_t const idxBus = pPciDev->Int.s.idxPdmBus; 372 Assert(idxBus < RT_ELEMENTS(pGVM->pdmr0.s.aPciBuses)); 373 PPDMPCIBUSR0 pBus = &pGVM->pdmr0.s.aPciBuses[idxBus]; 374 367 375 RTGCPHYS GCPhysOut; 368 uint16_t const uDeviceId = VBOX_PCI_BUSDEVFN_MAKE(p PciDev->Int.s.idxPdmBus, pPciDev->uDevFn);376 uint16_t const uDeviceId = VBOX_PCI_BUSDEVFN_MAKE(pBus->iBus, pPciDev->uDevFn); 369 377 int rc = pIommu->pfnMemWrite(pDevInsIommu, uDeviceId, GCPhys, cbWrite, &GCPhysOut); 370 378 if (RT_FAILURE(rc)) -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r84755 r84809 1799 1799 && pDevInsIommu != pDevIns) 1800 1800 { 1801 size_t const idxBus = pPciDev->Int.s.idxPdmBus; 1802 Assert(idxBus < RT_ELEMENTS(pVM->pdm.s.aPciBuses)); 1803 PPDMPCIBUS pBus = &pVM->pdm.s.aPciBuses[idxBus]; 1804 1801 1805 RTGCPHYS GCPhysOut; 1802 uint16_t const uDevId = VBOX_PCI_BUSDEVFN_MAKE(p PciDev->Int.s.idxPdmBus, pPciDev->uDevFn);1806 uint16_t const uDevId = VBOX_PCI_BUSDEVFN_MAKE(pBus->iBus, pPciDev->uDevFn); 1803 1807 int rc = pIommu->pfnMemRead(pDevInsIommu, uDevId, GCPhys, cbRead, &GCPhysOut); 1804 1808 if (RT_FAILURE(rc)) … … 1847 1851 && pDevInsIommu != pDevIns) 1848 1852 { 1853 size_t const idxBus = pPciDev->Int.s.idxPdmBus; 1854 Assert(idxBus < RT_ELEMENTS(pVM->pdm.s.aPciBuses)); 1855 PPDMPCIBUS pBus = &pVM->pdm.s.aPciBuses[idxBus]; 1856 1849 1857 RTGCPHYS GCPhysOut; 1850 uint16_t const uDevId = VBOX_PCI_BUSDEVFN_MAKE(p PciDev->Int.s.idxPdmBus, pPciDev->uDevFn);1858 uint16_t const uDevId = VBOX_PCI_BUSDEVFN_MAKE(pBus->iBus, pPciDev->uDevFn); 1851 1859 int rc = pIommu->pfnMemWrite(pDevInsIommu, uDevId, GCPhys, cbWrite, &GCPhysOut); 1852 1860 if (RT_FAILURE(rc)) -
trunk/src/VBox/VMM/VMMR3/PDMDevHlpTracing.cpp
r84766 r84809 422 422 && pDevInsIommu != pDevIns) 423 423 { 424 size_t const idxBus = pPciDev->Int.s.idxPdmBus; 425 Assert(idxBus < RT_ELEMENTS(pVM->pdm.s.aPciBuses)); 426 PPDMPCIBUS pBus = &pVM->pdm.s.aPciBuses[idxBus]; 427 424 428 RTGCPHYS GCPhysOut; 425 uint16_t const uDevId = VBOX_PCI_BUSDEVFN_MAKE(p PciDev->Int.s.idxPdmBus, pPciDev->uDevFn);429 uint16_t const uDevId = VBOX_PCI_BUSDEVFN_MAKE(pBus->iBus, pPciDev->uDevFn); 426 430 int rc = pIommu->pfnMemRead(pDevInsIommu, uDevId, GCPhys, cbRead, &GCPhysOut); 427 431 if (RT_FAILURE(rc)) … … 470 474 && pDevInsIommu != pDevIns) 471 475 { 476 size_t const idxBus = pPciDev->Int.s.idxPdmBus; 477 Assert(idxBus < RT_ELEMENTS(pVM->pdm.s.aPciBuses)); 478 PPDMPCIBUS pBus = &pVM->pdm.s.aPciBuses[idxBus]; 479 472 480 RTGCPHYS GCPhysOut; 473 uint16_t const uDevId = VBOX_PCI_BUSDEVFN_MAKE(p PciDev->Int.s.idxPdmBus, pPciDev->uDevFn);481 uint16_t const uDevId = VBOX_PCI_BUSDEVFN_MAKE(pBus->iBus, pPciDev->uDevFn); 474 482 int rc = pIommu->pfnMemWrite(pDevInsIommu, uDevId, GCPhys, cbWrite, &GCPhysOut); 475 483 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.