VirtualBox

Ignore:
Timestamp:
Oct 21, 2021 9:09:51 AM (3 years ago)
Author:
vboxsync
Message:

VMM,Devices: Eliminate direct calls to PGMHandlerPhysical* APIs and introduce callbacks in the device helper callback table, bugref:10074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/PDMR0DevHlp.cpp

    r91906 r91928  
    13171317    LogFlow(("pdmR0DevHlp_HpetSetUpContext: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, VINF_SUCCESS));
    13181318    return VINF_SUCCESS;
     1319}
     1320
     1321
     1322/** @interface_method_impl{PDMDEVHLPR0,pfnPGMHandlerPhysicalPageTempOff} */
     1323static DECLCALLBACK(int) pdmR0DevHlp_PGMHandlerPhysicalPageTempOff(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTGCPHYS GCPhysPage)
     1324{
     1325    PDMDEV_ASSERT_DEVINS(pDevIns);
     1326    LogFlow(("pdmR0DevHlp_PGMHandlerPhysicalPageTempOff: caller='%s'/%d: GCPhys=%RGp\n", pDevIns->pReg->szName, pDevIns->iInstance, GCPhys));
     1327
     1328    int rc = PGMHandlerPhysicalPageTempOff(pDevIns->Internal.s.pGVM, GCPhys, GCPhysPage);
     1329
     1330    Log(("pdmR0DevHlp_PGMHandlerPhysicalPageTempOff: caller='%s'/%d: returns %Rrc\n",
     1331         pDevIns->pReg->szName, pDevIns->iInstance, rc));
     1332    return rc;
    13191333}
    13201334
     
    14121426    pdmR0DevHlp_IoApicSetUpContext,
    14131427    pdmR0DevHlp_HpetSetUpContext,
     1428    pdmR0DevHlp_PGMHandlerPhysicalPageTempOff,
    14141429    NULL /*pfnReserved1*/,
    14151430    NULL /*pfnReserved2*/,
     
    15191534    pdmR0DevHlp_IoApicSetUpContext,
    15201535    pdmR0DevHlp_HpetSetUpContext,
     1536    pdmR0DevHlp_PGMHandlerPhysicalPageTempOff,
    15211537    NULL /*pfnReserved1*/,
    15221538    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