VirtualBox

Changeset 18677 in vbox


Ignore:
Timestamp:
Apr 3, 2009 11:03:49 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45612
Message:

Deleted PGMHandlerPhysicalPageReset (unused and not up to date).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pgm.h

    r18660 r18677  
    346346VMMDECL(int)        PGMHandlerPhysicalPageAlias(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysPage, RTGCPHYS GCPhysPageRemap);
    347347VMMDECL(int)        PGMHandlerPhysicalReset(PVM pVM, RTGCPHYS GCPhys);
    348 VMMDECL(int)        PGMHandlerPhysicalPageReset(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysPage);
    349348VMMDECL(bool)       PGMHandlerPhysicalIsRegistered(PVM pVM, RTGCPHYS GCPhys);
    350349VMMDECL(bool)       PGMHandlerVirtualIsRegistered(PVM pVM, RTGCPTR GCPtr);
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r18666 r18677  
    10501050
    10511051
    1052 #if 0/**@todo delete this. */
    1053 /**
    1054  * Turns access monitoring of a page within a monitored
    1055  * physical write/all page access handler regio back on.
    1056  *
    1057  * The caller must do required page table modifications.
    1058  *
    1059  * @returns VBox status code.
    1060  * @param   pVM         VM Handle
    1061  * @param   GCPhys      Start physical address earlier passed to PGMR3HandlerPhysicalRegister().
    1062  *                      This must be a fully page aligned range or we risk messing up other
    1063  *                      handlers installed for the start and end pages.
    1064  * @param   GCPhysPage  Physical address of the page to turn on access monitoring for.
    1065  */
    1066 VMMDECL(int)  PGMHandlerPhysicalPageReset(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysPage)
    1067 {
    1068     /*
    1069      * Validate the range.
    1070      */
    1071     PPGMPHYSHANDLER pCur = (PPGMPHYSHANDLER)RTAvlroGCPhysGet(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, GCPhys);
    1072     if (RT_LIKELY(pCur))
    1073     {
    1074         if (RT_LIKELY(    GCPhysPage >= pCur->Core.Key
    1075                       &&  GCPhysPage <= pCur->Core.KeyLast))
    1076         {
    1077             Assert(!(pCur->Core.Key & PAGE_OFFSET_MASK));
    1078             Assert((pCur->Core.KeyLast & PAGE_OFFSET_MASK) == PAGE_OFFSET_MASK);
    1079 
    1080             AssertReturn(   pCur->enmType == PGMPHYSHANDLERTYPE_PHYSICAL_WRITE
    1081                          || pCur->enmType == PGMPHYSHANDLERTYPE_PHYSICAL_ALL
    1082                          || pCur->enmType == PGMPHYSHANDLERTYPE_MMIO,
    1083                          VERR_ACCESS_DENIED);
    1084 
    1085             /*
    1086              * Change the page status.
    1087              */
    1088             PPGMPAGE pPage;
    1089             int rc = pgmPhysGetPageEx(&pVM->pgm.s, GCPhysPage, &pPage);
    1090             AssertRCReturn(rc, rc);
    1091             PGM_PAGE_SET_HNDL_PHYS_STATE(pPage, pgmHandlerPhysicalCalcState(pCur));
    1092 
    1093 #ifndef IN_RC
    1094             HWACCMInvalidatePhysPage(pVM, GCPhysPage);
    1095 #endif
    1096             return VINF_SUCCESS;
    1097         }
    1098 
    1099         AssertMsgFailed(("The page %#x is outside the range %#x-%#x\n",
    1100                          GCPhysPage, pCur->Core.Key, pCur->Core.KeyLast));
    1101         return VERR_INVALID_PARAMETER;
    1102     }
    1103 
    1104     AssertMsgFailed(("Specified physical handler start address %#x is invalid.\n", GCPhys));
    1105     return VERR_PGM_HANDLER_NOT_FOUND;
    1106 }
    1107 #endif
    1108 
    1109 
    11101052/**
    11111053 * Checks if a physical range is handled
Note: See TracChangeset for help on using the changeset viewer.

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