- Timestamp:
- Oct 21, 2021 10:12:30 AM (3 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r91928 r91930 632 632 if (pThis->fRemappedVGA) 633 633 { 634 IOMMmioResetRegion(PDMDevHlpGetVM(pDevIns),pDevIns, pThis->hMmioLegacy);634 PDMDevHlpMmioResetRegion(pDevIns, pThis->hMmioLegacy); 635 635 pThis->fRemappedVGA = false; 636 636 } … … 671 671 if (pThis->fRemappedVGA) 672 672 { 673 IOMMmioResetRegion(PDMDevHlpGetVM(pDevIns),pDevIns, pThis->hMmioLegacy);673 PDMDevHlpMmioResetRegion(pDevIns, pThis->hMmioLegacy); 674 674 pThis->fRemappedVGA = false; 675 675 } … … 928 928 if (pThis->fRemappedVGA) 929 929 { 930 IOMMmioResetRegion(PDMDevHlpGetVM(pDevIns),pDevIns, pThis->hMmioLegacy);930 PDMDevHlpMmioResetRegion(pDevIns, pThis->hMmioLegacy); 931 931 pThis->fRemappedVGA = false; 932 932 } … … 1037 1037 if (pThis->fRemappedVGA) 1038 1038 { 1039 IOMMmioResetRegion(PDMDevHlpGetVM(pDevIns),pDevIns, pThis->hMmioLegacy);1039 PDMDevHlpMmioResetRegion(pDevIns, pThis->hMmioLegacy); 1040 1040 pThis->fRemappedVGA = false; 1041 1041 } … … 1138 1138 /** @todo only allow read access (doesn't work now) */ 1139 1139 STAM_COUNTER_INC(&pThis->StatMapPage); 1140 IOMMmioMapMmio2Page(PDMDevHlpGetVM(pDevIns),pDevIns, pThis->hMmioLegacy, GCPhys - 0xa0000,1141 pThis->hMmio2VRam, addr, X86_PTE_RW | X86_PTE_P);1140 PDMDevHlpMmioMapMmio2Page(pDevIns, pThis->hMmioLegacy, GCPhys - 0xa0000, 1141 pThis->hMmio2VRam, addr, X86_PTE_RW | X86_PTE_P); 1142 1142 /* Set as dirty as write accesses won't be noticed now. */ 1143 1143 vgaR3MarkDirty(pThis, addr); … … 1246 1246 { 1247 1247 STAM_COUNTER_INC(&pThis->StatMapPage); 1248 IOMMmioMapMmio2Page(PDMDevHlpGetVM(pDevIns),pDevIns, pThis->hMmioLegacy, GCPhys - 0xa0000,1249 pThis->hMmio2VRam, addr, X86_PTE_RW | X86_PTE_P);1248 PDMDevHlpMmioMapMmio2Page(pDevIns, pThis->hMmioLegacy, GCPhys - 0xa0000, 1249 pThis->hMmio2VRam, addr, X86_PTE_RW | X86_PTE_P); 1250 1250 pThis->fRemappedVGA = true; 1251 1251 } … … 4792 4792 if (pThis->fRemappedVGA) 4793 4793 { 4794 IOMMmioResetRegion(PDMDevHlpGetVM(pDevIns),pDevIns, pThis->hMmioLegacy);4794 PDMDevHlpMmioResetRegion(pDevIns, pThis->hMmioLegacy); 4795 4795 pThis->fRemappedVGA = false; 4796 4796 } … … 4820 4820 if (pThis->fRemappedVGA) 4821 4821 { 4822 IOMMmioResetRegion(PDMDevHlpGetVM(pDevIns),pDevIns, pThis->hMmioLegacy);4822 PDMDevHlpMmioResetRegion(pDevIns, pThis->hMmioLegacy); 4823 4823 pThis->fRemappedVGA = false; 4824 4824 } … … 6060 6060 if (pThis->fRemappedVGA) 6061 6061 { 6062 IOMMmioResetRegion(PDMDevHlpGetVM(pDevIns),pDevIns, pThis->hMmioLegacy);6062 PDMDevHlpMmioResetRegion(pDevIns, pThis->hMmioLegacy); 6063 6063 pThis->fRemappedVGA = false; 6064 6064 } -
trunk/src/VBox/VMM/VMMR0/PDMR0DevHlp.cpp
r91928 r91930 1329 1329 1330 1330 Log(("pdmR0DevHlp_PGMHandlerPhysicalPageTempOff: caller='%s'/%d: returns %Rrc\n", 1331 pDevIns->pReg->szName, pDevIns->iInstance, rc)); 1332 return rc; 1333 } 1334 1335 1336 /** @interface_method_impl{PDMDEVHLPR0,pfnMmioMapMmio2Page} */ 1337 static DECLCALLBACK(int) pdmR0DevHlp_MmioMapMmio2Page(PPDMDEVINS pDevIns, IOMMMIOHANDLE hRegion, RTGCPHYS offRegion, 1338 uint64_t hMmio2, RTGCPHYS offMmio2, uint64_t fPageFlags) 1339 { 1340 PDMDEV_ASSERT_DEVINS(pDevIns); 1341 LogFlow(("pdmR0DevHlp_MmioMapMmio2Page: caller='%s'/%d: hRegion=%RX64 offRegion=%RGp hMmio2=%RX64 offMmio2=%RGp fPageFlags=%RX64\n", 1342 pDevIns->pReg->szName, pDevIns->iInstance, hRegion, offRegion, hMmio2, offMmio2, fPageFlags)); 1343 1344 int rc = IOMMmioMapMmio2Page(pDevIns->Internal.s.pGVM, pDevIns, hRegion, offRegion, hMmio2, offMmio2, fPageFlags); 1345 1346 Log(("pdmR0DevHlp_MmioMapMmio2Page: caller='%s'/%d: returns %Rrc\n", 1347 pDevIns->pReg->szName, pDevIns->iInstance, rc)); 1348 return rc; 1349 } 1350 1351 1352 /** @interface_method_impl{PDMDEVHLPR0,pfnMmioResetRegion} */ 1353 static DECLCALLBACK(int) pdmR0DevHlp_MmioResetRegion(PPDMDEVINS pDevIns, IOMMMIOHANDLE hRegion) 1354 { 1355 PDMDEV_ASSERT_DEVINS(pDevIns); 1356 LogFlow(("pdmR0DevHlp_MmioResetRegion: caller='%s'/%d: hRegion=%RX64\n", 1357 pDevIns->pReg->szName, pDevIns->iInstance, hRegion)); 1358 1359 int rc = IOMMmioResetRegion(pDevIns->Internal.s.pGVM, pDevIns, hRegion); 1360 1361 Log(("pdmR0DevHlp_MmioResetRegion: caller='%s'/%d: returns %Rrc\n", 1331 1362 pDevIns->pReg->szName, pDevIns->iInstance, rc)); 1332 1363 return rc; … … 1427 1458 pdmR0DevHlp_HpetSetUpContext, 1428 1459 pdmR0DevHlp_PGMHandlerPhysicalPageTempOff, 1460 pdmR0DevHlp_MmioMapMmio2Page, 1461 pdmR0DevHlp_MmioResetRegion, 1429 1462 NULL /*pfnReserved1*/, 1430 1463 NULL /*pfnReserved2*/, … … 1535 1568 pdmR0DevHlp_HpetSetUpContext, 1536 1569 pdmR0DevHlp_PGMHandlerPhysicalPageTempOff, 1570 pdmR0DevHlp_MmioMapMmio2Page, 1571 pdmR0DevHlp_MmioResetRegion, 1537 1572 NULL /*pfnReserved1*/, 1538 1573 NULL /*pfnReserved2*/, -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r91928 r91930 351 351 352 352 LogFlow(("pdmR3DevHlp_Mmio2ChangeRegionNo: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); 353 return rc; 354 } 355 356 357 /** @interface_method_impl{PDMDEVHLPR3,pfnMmioMapMmio2Page} */ 358 static DECLCALLBACK(int) pdmR3DevHlp_MmioMapMmio2Page(PPDMDEVINS pDevIns, IOMMMIOHANDLE hRegion, RTGCPHYS offRegion, 359 uint64_t hMmio2, RTGCPHYS offMmio2, uint64_t fPageFlags) 360 { 361 PDMDEV_ASSERT_DEVINS(pDevIns); 362 LogFlow(("pdmR3DevHlp_MmioMapMmio2Page: caller='%s'/%d: hRegion=%RX64 offRegion=%RGp hMmio2=%RX64 offMmio2=%RGp fPageFlags=%RX64\n", 363 pDevIns->pReg->szName, pDevIns->iInstance, hRegion, offRegion, hMmio2, offMmio2, fPageFlags)); 364 365 int rc = IOMMmioMapMmio2Page(pDevIns->Internal.s.pVMR3, pDevIns, hRegion, offRegion, hMmio2, offMmio2, fPageFlags); 366 367 Log(("pdmR3DevHlp_MmioMapMmio2Page: caller='%s'/%d: returns %Rrc\n", 368 pDevIns->pReg->szName, pDevIns->iInstance, rc)); 369 return rc; 370 } 371 372 373 /** @interface_method_impl{PDMDEVHLPR3,pfnMmioResetRegion} */ 374 static DECLCALLBACK(int) pdmR3DevHlp_MmioResetRegion(PPDMDEVINS pDevIns, IOMMMIOHANDLE hRegion) 375 { 376 PDMDEV_ASSERT_DEVINS(pDevIns); 377 LogFlow(("pdmR3DevHlp_MmioResetRegion: caller='%s'/%d: hRegion=%RX64\n", 378 pDevIns->pReg->szName, pDevIns->iInstance, hRegion)); 379 380 int rc = IOMMmioResetRegion(pDevIns->Internal.s.pVMR3, pDevIns, hRegion); 381 382 Log(("pdmR3DevHlp_MmioResetRegion: caller='%s'/%d: returns %Rrc\n", 383 pDevIns->pReg->szName, pDevIns->iInstance, rc)); 353 384 return rc; 354 385 } … … 4566 4597 pdmR3DevHlp_Mmio2GetMappingAddress, 4567 4598 pdmR3DevHlp_Mmio2ChangeRegionNo, 4599 pdmR3DevHlp_MmioMapMmio2Page, 4600 pdmR3DevHlp_MmioResetRegion, 4568 4601 pdmR3DevHlp_ROMRegister, 4569 4602 pdmR3DevHlp_ROMProtectShadow, … … 4945 4978 pdmR3DevHlp_Mmio2GetMappingAddress, 4946 4979 pdmR3DevHlp_Mmio2ChangeRegionNo, 4980 pdmR3DevHlp_MmioMapMmio2Page, 4981 pdmR3DevHlp_MmioResetRegion, 4947 4982 pdmR3DevHlp_ROMRegister, 4948 4983 pdmR3DevHlp_ROMProtectShadow, … … 5595 5630 pdmR3DevHlp_Mmio2GetMappingAddress, 5596 5631 pdmR3DevHlp_Mmio2ChangeRegionNo, 5632 pdmR3DevHlp_MmioMapMmio2Page, 5633 pdmR3DevHlp_MmioResetRegion, 5597 5634 pdmR3DevHlp_ROMRegister, 5598 5635 pdmR3DevHlp_ROMProtectShadow,
Note:
See TracChangeset
for help on using the changeset viewer.