VirtualBox

Changeset 91980 in vbox for trunk/src


Ignore:
Timestamp:
Oct 21, 2021 6:12:53 PM (3 years ago)
Author:
vboxsync
Message:

VMM,GIMDev: Missing PDMDevHlpGIMGetMmio2Regions for ring-0 variant, bugref:10074

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/GIMDev/GIMDev.cpp

    r91968 r91980  
    389389     */
    390390/** @todo r=bird: consider ditching this as GIM doesn't actually make use of it */
    391     PVMCC           pVM       = PDMDevHlpGetVM(pDevIns);
    392391    uint32_t        cRegions  = 0;
    393     PGIMMMIO2REGION paRegions = GIMGetMmio2Regions(pVM, &cRegions);
     392    PGIMMMIO2REGION paRegions = PDMDevHlpGIMGetMmio2Regions(pDevIns, &cRegions);
    394393    if (   cRegions
    395394        && paRegions)
  • trunk/src/VBox/VMM/VMMR0/PDMR0DevHlp.cpp

    r91930 r91980  
    13621362         pDevIns->pReg->szName, pDevIns->iInstance, rc));
    13631363    return rc;
     1364}
     1365
     1366
     1367/** @interface_method_impl{PDMDEVHLPR0,pfnGIMGetMmio2Regions} */
     1368static DECLCALLBACK(PGIMMMIO2REGION) pdmR0DevHlp_GIMGetMmio2Regions(PPDMDEVINS pDevIns, uint32_t *pcRegions)
     1369{
     1370    PDMDEV_ASSERT_DEVINS(pDevIns);
     1371
     1372    LogFlow(("pdmR0DevHlp_GIMGetMmio2Regions: caller='%s'/%d: pcRegions=%p\n",
     1373             pDevIns->pReg->szName, pDevIns->iInstance, pcRegions));
     1374
     1375    PGIMMMIO2REGION pRegion = GIMGetMmio2Regions(pDevIns->Internal.s.pGVM, pcRegions);
     1376
     1377    LogFlow(("pdmR0DevHlp_GIMGetMmio2Regions: caller='%s'/%d: returns %p\n", pDevIns->pReg->szName, pDevIns->iInstance, pRegion));
     1378    return pRegion;
    13641379}
    13651380
     
    14601475    pdmR0DevHlp_MmioMapMmio2Page,
    14611476    pdmR0DevHlp_MmioResetRegion,
     1477    pdmR0DevHlp_GIMGetMmio2Regions,
    14621478    NULL /*pfnReserved1*/,
    14631479    NULL /*pfnReserved2*/,
     
    15701586    pdmR0DevHlp_MmioMapMmio2Page,
    15711587    pdmR0DevHlp_MmioResetRegion,
     1588    pdmR0DevHlp_GIMGetMmio2Regions,
    15721589    NULL /*pfnReserved1*/,
    15731590    NULL /*pfnReserved2*/,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette